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