]> git.lizzy.rs Git - rust.git/commitdiff
more consistent test name
authorRalf Jung <post@ralfj.de>
Sat, 3 Aug 2019 15:27:50 +0000 (17:27 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 3 Aug 2019 15:27:50 +0000 (17:27 +0200)
tests/compile-fail/copy_nonoverlapping.rs [deleted file]
tests/compile-fail/copy_overlapping.rs [new file with mode: 0644]

diff --git a/tests/compile-fail/copy_nonoverlapping.rs b/tests/compile-fail/copy_nonoverlapping.rs
deleted file mode 100644 (file)
index 748bccf..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#![feature(core_intrinsics)]
-
-//error-pattern: copy_nonoverlapping called on overlapping ranges
-
-fn main() {
-    let mut data = [0u8; 16];
-    unsafe {
-        let a = data.as_mut_ptr();
-        let b = a.wrapping_offset(1) as *mut _;
-        std::ptr::copy_nonoverlapping(a, b, 2);
-    }
-}
diff --git a/tests/compile-fail/copy_overlapping.rs b/tests/compile-fail/copy_overlapping.rs
new file mode 100644 (file)
index 0000000..748bccf
--- /dev/null
@@ -0,0 +1,12 @@
+#![feature(core_intrinsics)]
+
+//error-pattern: copy_nonoverlapping called on overlapping ranges
+
+fn main() {
+    let mut data = [0u8; 16];
+    unsafe {
+        let a = data.as_mut_ptr();
+        let b = a.wrapping_offset(1) as *mut _;
+        std::ptr::copy_nonoverlapping(a, b, 2);
+    }
+}