blob: 7167f88a1185be1b2609077048f54b6237bcca5f [file] [log] [blame]
#![allow(const_err)]
#[repr(C)]
union Foo {
a: &'static u32,
b: usize,
}
fn main() {
let x: &'static bool = &unsafe { //~ temporary value dropped while borrowed
Foo { a: &1 }.b == Foo { a: &2 }.b
};
}