1 // Check that borrowck ensures that `static mut` items have the expected type.
4 static mut BAR: &'static u8 = &FOO;
5 static mut BAR_ELIDED: &u8 = &FOO;
9 println!("{} {}", BAR, BAR_ELIDED);
12 println!("{} {}", BAR, BAR_ELIDED);
20 //~^ ERROR does not live long enough
28 //~^ ERROR does not live long enough