1 error[E0716]: temporary value dropped while borrowed
2 --> $DIR/promoted_const_call.rs:7:26
4 LL | let _: &'static _ = &id(&Panic);
5 | ---------- ^^^^^^^^^^ creates a temporary value which is freed while still in use
7 | type annotation requires that borrow lasts for `'static`
10 | - temporary value is freed at the end of this statement
12 error[E0716]: temporary value dropped while borrowed
13 --> $DIR/promoted_const_call.rs:7:30
15 LL | let _: &'static _ = &id(&Panic);
16 | ---------- ^^^^^ - temporary value is freed at the end of this statement
18 | | creates a temporary value which is freed while still in use
19 | type annotation requires that borrow lasts for `'static`
21 error[E0716]: temporary value dropped while borrowed
22 --> $DIR/promoted_const_call.rs:13:26
24 LL | let _: &'static _ = &id(&Panic);
25 | ---------- ^^^^^^^^^^ creates a temporary value which is freed while still in use
27 | type annotation requires that borrow lasts for `'static`
30 | - temporary value is freed at the end of this statement
32 error[E0716]: temporary value dropped while borrowed
33 --> $DIR/promoted_const_call.rs:13:30
35 LL | let _: &'static _ = &id(&Panic);
36 | ---------- ^^^^^ - temporary value is freed at the end of this statement
38 | | creates a temporary value which is freed while still in use
39 | type annotation requires that borrow lasts for `'static`
41 error[E0716]: temporary value dropped while borrowed
42 --> $DIR/promoted_const_call.rs:16:26
44 LL | let _: &'static _ = &&(Panic, 0).1;
45 | ---------- ^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
47 | type annotation requires that borrow lasts for `'static`
50 | - temporary value is freed at the end of this statement
52 error[E0716]: temporary value dropped while borrowed
53 --> $DIR/promoted_const_call.rs:16:27
55 LL | let _: &'static _ = &&(Panic, 0).1;
56 | ---------- ^^^^^^^^^^ creates a temporary value which is freed while still in use
58 | type annotation requires that borrow lasts for `'static`
61 | - temporary value is freed at the end of this statement
63 error: aborting due to 6 previous errors
65 For more information about this error, try `rustc --explain E0716`.