diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/consts/const-suggest-feature.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-suggest-feature.rs b/src/test/ui/consts/const-suggest-feature.rs new file mode 100644 index 000000000..d76d01a3d --- /dev/null +++ b/src/test/ui/consts/const-suggest-feature.rs @@ -0,0 +1,7 @@ +const WRITE: () = unsafe { + *std::ptr::null_mut() = 0; + //~^ ERROR dereferencing raw mutable pointers in constants is unstable + //~| HELP add `#![feature(const_mut_refs)]` to the crate attributes to enable +}; + +fn main() {} |