]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-suggest-feature.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / const-suggest-feature.rs
1 const WRITE: () = unsafe {
2     *std::ptr::null_mut() = 0;
3     //~^ ERROR dereferencing raw pointers in constants is unstable
4     //~| HELP add `#![feature(const_raw_ptr_deref)]` to the crate attributes to enable
5     //~| ERROR constant contains unimplemented expression type
6     //~| HELP add `#![feature(const_mut_refs)]` to the crate attributes to enable
7 };
8
9 fn main() {}