summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs')
-rw-r--r--src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs b/src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs
deleted file mode 100644
index ec5508a1e..000000000
--- a/src/test/ui/consts/const-eval/const_raw_ptr_ops2.rs
+++ /dev/null
@@ -1,10 +0,0 @@
-fn main() {}
-
-// fine
-const Z: i32 = unsafe { *(&1 as *const i32) };
-
-// bad, will thus error in miri
-const Z2: i32 = unsafe { *(42 as *const i32) }; //~ ERROR evaluation of constant value failed
-//~| is a dangling pointer
-const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR evaluation of constant value failed
-//~| is a dangling pointer