about summary refs log tree commit diff
path: root/library/alloc/tests/slice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/alloc/tests/slice.rs')
-rw-r--r--library/alloc/tests/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/tests/slice.rs b/library/alloc/tests/slice.rs
index 147f7f7d0c7..3c7d57f8b32 100644
--- a/library/alloc/tests/slice.rs
+++ b/library/alloc/tests/slice.rs
@@ -1522,7 +1522,7 @@ fn test_copy_from_slice() {
 }
 
 #[test]
-#[should_panic(expected = "destination and source slices have different lengths")]
+#[should_panic(expected = "source slice length (4) does not match destination slice length (5)")]
 fn test_copy_from_slice_dst_longer() {
     let src = [0, 1, 2, 3];
     let mut dst = [0; 5];
@@ -1530,7 +1530,7 @@ fn test_copy_from_slice_dst_longer() {
 }
 
 #[test]
-#[should_panic(expected = "destination and source slices have different lengths")]
+#[should_panic(expected = "source slice length (4) does not match destination slice length (3)")]
 fn test_copy_from_slice_dst_shorter() {
     let src = [0, 1, 2, 3];
     let mut dst = [0; 3];