]> git.lizzy.rs Git - rust.git/blob - tests/ui/consts/const-suggest-feature.rs
Rollup merge of #107058 - clubby789:eqeq-homoglyph, r=wesleywiser
[rust.git] / tests / ui / consts / const-suggest-feature.rs
1 const WRITE: () = unsafe {
2     *std::ptr::null_mut() = 0;
3     //~^ ERROR dereferencing raw mutable pointers in constants is unstable
4     //~| HELP add `#![feature(const_mut_refs)]` to the crate attributes to enable
5 };
6
7 fn main() {}