1 error[E0716]: temporary value dropped while borrowed
2 --> $DIR/union_promotion.rs:10:29
4 LL | let x: &'static bool = &unsafe {
5 | ____________-------------____^
7 | | type annotation requires that borrow lasts for `'static`
8 LL | | Foo { a: &1 }.b == Foo { a: &2 }.b
10 | |_____^ creates a temporary which is freed while still in use
12 | - temporary value is freed at the end of this statement
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0716`.