rust/src/test/ui/const-suggest-feature.rs
Dylan MacKenzie 51fbd555f0 Bless tests
2020-09-29 19:20:33 -07:00

8 lines
229 B
Rust

const WRITE: () = unsafe {
*std::ptr::null_mut() = 0;
//~^ ERROR dereferencing raw pointers in constants is unstable
//~| HELP add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
};
fn main() {}