]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/static_mut_containing_mut_ref2.rs
Update tests to changes on master
[rust.git] / src / test / ui / consts / static_mut_containing_mut_ref2.rs
1 #![feature(const_let)]
2
3 static mut STDERR_BUFFER_SPACE: u8 = 0;
4
5 pub static mut STDERR_BUFFER: () = unsafe { *(&mut STDERR_BUFFER_SPACE) = 42; };
6 //~^ ERROR references in statics may only refer to immutable values
7 //~| ERROR static contains unimplemented expression type
8
9 fn main() {}