fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0493]: destructor of `Panic` cannot be evaluated at compile-time 2 --> $DIR/promoted_const_call.rs:11:30 3 | 4LL | let _: &'static _ = &id(&Panic); 5 | ^^^^^ - value is dropped here 6 | | 7 | the destructor for this type cannot be evaluated in constants 8 9error[E0716]: temporary value dropped while borrowed 10 --> $DIR/promoted_const_call.rs:11:26 11 | 12LL | let _: &'static _ = &id(&Panic); 13 | ---------- ^^^^^^^^^^ creates a temporary value which is freed while still in use 14 | | 15 | type annotation requires that borrow lasts for `'static` 16... 17LL | }; 18 | - temporary value is freed at the end of this statement 19 20error[E0716]: temporary value dropped while borrowed 21 --> $DIR/promoted_const_call.rs:11:30 22 | 23LL | let _: &'static _ = &id(&Panic); 24 | ---------- ^^^^^ - temporary value is freed at the end of this statement 25 | | | 26 | | creates a temporary value which is freed while still in use 27 | type annotation requires that borrow lasts for `'static` 28 29error[E0716]: temporary value dropped while borrowed 30 --> $DIR/promoted_const_call.rs:17:26 31 | 32LL | let _: &'static _ = &id(&Panic); 33 | ---------- ^^^^^^^^^^ creates a temporary value which is freed while still in use 34 | | 35 | type annotation requires that borrow lasts for `'static` 36... 37LL | } 38 | - temporary value is freed at the end of this statement 39 40error[E0716]: temporary value dropped while borrowed 41 --> $DIR/promoted_const_call.rs:17:30 42 | 43LL | let _: &'static _ = &id(&Panic); 44 | ---------- ^^^^^ - temporary value is freed at the end of this statement 45 | | | 46 | | creates a temporary value which is freed while still in use 47 | type annotation requires that borrow lasts for `'static` 48 49error[E0716]: temporary value dropped while borrowed 50 --> $DIR/promoted_const_call.rs:20:26 51 | 52LL | let _: &'static _ = &&(Panic, 0).1; 53 | ---------- ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use 54 | | 55 | type annotation requires that borrow lasts for `'static` 56... 57LL | } 58 | - temporary value is freed at the end of this statement 59 60error[E0716]: temporary value dropped while borrowed 61 --> $DIR/promoted_const_call.rs:20:27 62 | 63LL | let _: &'static _ = &&(Panic, 0).1; 64 | ---------- ^^^^^^^^^^ creates a temporary value which is freed while still in use 65 | | 66 | type annotation requires that borrow lasts for `'static` 67... 68LL | } 69 | - temporary value is freed at the end of this statement 70 71error: aborting due to 7 previous errors 72 73Some errors have detailed explanations: E0493, E0716. 74For more information about an error, try `rustc --explain E0493`.