summary refs log tree commit diff
path: root/src/test/ui/const-suggest-feature.rs
blob: 89fafbbe6f0444324a7df4afa9c71e756b2c54b3 (plain)
1
2
3
4
5
6
7
8
9
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
    //~| ERROR constant contains unimplemented expression type
    //~| HELP add `#![feature(const_mut_refs)]` to the crate attributes to enable
};

fn main() {}