summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/validate_never_arrays.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/validate_never_arrays.rs')
-rw-r--r--src/test/ui/consts/validate_never_arrays.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/consts/validate_never_arrays.rs b/src/test/ui/consts/validate_never_arrays.rs
deleted file mode 100644
index a02e386c6..000000000
--- a/src/test/ui/consts/validate_never_arrays.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-// stderr-per-bitwidth
-#![feature(never_type)]
-
-const _: &[!; 1] = unsafe { &*(1_usize as *const [!; 1]) }; //~ ERROR undefined behavior
-const _: &[!; 0] = unsafe { &*(1_usize as *const [!; 0]) }; // ok
-const _: &[!] = unsafe { &*(1_usize as *const [!; 0]) }; // ok
-const _: &[!] = unsafe { &*(1_usize as *const [!; 1]) }; //~ ERROR undefined behavior
-const _: &[!] = unsafe { &*(1_usize as *const [!; 42]) }; //~ ERROR undefined behavior
-
-fn main() {}