summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/ptr_is_null.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/ptr_is_null.rs')
-rw-r--r--src/test/ui/consts/ptr_is_null.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/consts/ptr_is_null.rs b/src/test/ui/consts/ptr_is_null.rs
deleted file mode 100644
index 8babb6858..000000000
--- a/src/test/ui/consts/ptr_is_null.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-// compile-flags: --crate-type=lib
-// check-pass
-
-#![feature(const_ptr_is_null)]
-
-const FOO: &usize = &42;
-
-pub const _: () = assert!(!(FOO as *const usize).is_null());
-
-pub const _: () = assert!(!(42 as *const usize).is_null());
-
-pub const _: () = assert!((0 as *const usize).is_null());
-
-pub const _: () = assert!(std::ptr::null::<usize>().is_null());
-
-pub const _: () = assert!(!("foo" as *const str).is_null());