1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:15:21
4 LL | let ref mut x = 1234543; //~ ERROR
5 | ^^^^^^^ temporary value does not live long enough
8 | - temporary value only lives until here
10 = note: borrowed value must be valid for the static lifetime...
12 error[E0597]: borrowed value does not live long enough
13 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:20:25
15 LL | let (ref mut x, ) = (1234543, ); //~ ERROR
16 | ^^^^^^^^^^^ temporary value does not live long enough
19 | - temporary value only lives until here
21 = note: borrowed value must be valid for the static lifetime...
23 error[E0597]: borrowed value does not live long enough
24 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:25:11
27 | ^^^^^^^ temporary value does not live long enough
30 | - temporary value only lives until here
32 = note: borrowed value must be valid for the static lifetime...
34 error[E0597]: borrowed value does not live long enough
35 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:31:11
37 LL | match (123443,) {
38 | ^^^^^^^^^ temporary value does not live long enough
41 | - temporary value only lives until here
43 = note: borrowed value must be valid for the static lifetime...
45 error[E0597]: borrowed value does not live long enough
46 --> $DIR/promote-ref-mut-in-let-issue-46557.rs:37:10
48 LL | &mut 1234543 //~ ERROR
49 | ^^^^^^^ temporary value does not live long enough
51 | - temporary value only lives until here
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 E0597`.