2 //[mir]compile-flags: -Z borrowck=mir
4 fn cplusplus_mode_exceptionally_unsafe(x: &mut Option<&'static mut isize>) {
7 //[ast]~^ ERROR `z.1` does not live long enough [E0597]
8 //[mir]~^^ ERROR `z.1` does not live long enough [E0597]
9 panic!("catch me for a dangling pointer!")
13 cplusplus_mode_exceptionally_unsafe(&mut None);