1 error[E0716]: temporary value dropped while borrowed
2 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:15:21
4 LL | let ref mut x = 1234543; //~ ERROR
5 | ^^^^^^^ creates a temporary which is freed while still in use
8 | - temporary value is freed at the end of this statement
10 = note: borrowed value must be valid for the static lifetime...
12 error[E0716]: temporary value dropped while borrowed
13 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:20:25
15 LL | let (ref mut x, ) = (1234543, ); //~ ERROR
16 | ^^^^^^^^^^^ creates a temporary which is freed while still in use
19 | - temporary value is freed at the end of this statement
21 = note: borrowed value must be valid for the static lifetime...
23 error[E0716]: temporary value dropped while borrowed
24 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:25:11
27 | ^^^^^^^ creates a temporary which is freed while still in use
30 | - temporary value is freed at the end of this statement
32 = note: borrowed value must be valid for the static lifetime...
34 error[E0716]: temporary value dropped while borrowed
35 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:31:11
37 LL | match (123443,) {
38 | ^^^^^^^^^ creates a temporary which is freed while still in use
41 | - temporary value is freed at the end of this statement
43 = note: borrowed value must be valid for the static lifetime...
45 error[E0716]: temporary value dropped while borrowed
46 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:37:10
48 LL | &mut 1234543 //~ ERROR
49 | ^^^^^^^ creates a temporary which is freed while still in use
51 | - temporary value is freed at the end of this statement
53 = note: borrowed value must be valid for the static lifetime...
55 error: aborting due to 5 previous errors
57 For more information about this error, try `rustc --explain E0716`.