rust/tests/ui/consts/static_mut_containing_mut_ref3.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
146 B
Rust
Raw Normal View History

2018-12-17 07:36:10 -06:00
static mut FOO: (u8, u8) = (42, 43);
static mut BAR: () = unsafe { FOO.0 = 99; };
//~^ ERROR could not evaluate static initializer
fn main() {}