rust/tests/ui/consts/static_mut_containing_mut_ref3.rs
2023-01-11 09:32:08 +00:00

7 lines
146 B
Rust

static mut FOO: (u8, u8) = (42, 43);
static mut BAR: () = unsafe { FOO.0 = 99; };
//~^ ERROR could not evaluate static initializer
fn main() {}