]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/promote-ref-mut-in-let-issue-46557.nll.stderr
Account for --remap-path-prefix in save-analysis
[rust.git] / src / test / ui / borrowck / promote-ref-mut-in-let-issue-46557.nll.stderr
1 error[E0597]: borrowed value does not live long enough
2   --> $DIR/promote-ref-mut-in-let-issue-46557.rs:15:21
3    |
4 LL |     let ref mut x = 1234543; //~ ERROR
5    |                     ^^^^^^^ temporary value does not live long enough
6 LL |     x
7 LL | }
8    | - temporary value only lives until here
9    |
10    = note: borrowed value must be valid for the static lifetime...
11
12 error[E0597]: borrowed value does not live long enough
13   --> $DIR/promote-ref-mut-in-let-issue-46557.rs:20:25
14    |
15 LL |     let (ref mut x, ) = (1234543, ); //~ ERROR
16    |                         ^^^^^^^^^^^ temporary value does not live long enough
17 LL |     x
18 LL | }
19    | - temporary value only lives until here
20    |
21    = note: borrowed value must be valid for the static lifetime...
22
23 error[E0597]: borrowed value does not live long enough
24   --> $DIR/promote-ref-mut-in-let-issue-46557.rs:25:11
25    |
26 LL |     match 1234543 {
27    |           ^^^^^^^ temporary value does not live long enough
28 ...
29 LL | }
30    | - temporary value only lives until here
31    |
32    = note: borrowed value must be valid for the static lifetime...
33
34 error[E0597]: borrowed value does not live long enough
35   --> $DIR/promote-ref-mut-in-let-issue-46557.rs:31:11
36    |
37 LL |     match (123443,) {
38    |           ^^^^^^^^^ temporary value does not live long enough
39 ...
40 LL | }
41    | - temporary value only lives until here
42    |
43    = note: borrowed value must be valid for the static lifetime...
44
45 error[E0597]: borrowed value does not live long enough
46   --> $DIR/promote-ref-mut-in-let-issue-46557.rs:37:10
47    |
48 LL |     &mut 1234543 //~ ERROR
49    |          ^^^^^^^ temporary value does not live long enough
50 LL | }
51    | - temporary value only lives until here
52    |
53    = note: borrowed value must be valid for the static lifetime...
54
55 error: aborting due to 5 previous errors
56
57 For more information about this error, try `rustc --explain E0597`.