]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46471-1.stderr
Auto merge of #53671 - RalfJung:miri-refactor, r=oli-obk
[rust.git] / src / test / ui / issues / issue-46471-1.stderr
1 error[E0597]: `z` does not live long enough (Ast)
2   --> $DIR/issue-46471-1.rs:16:14
3    |
4 LL |         &mut z
5    |              ^ borrowed value does not live long enough
6 LL |     };
7    |     - `z` dropped here while still borrowed
8 ...
9 LL | }
10    | - borrowed value needs to live until here
11
12 error[E0597]: `z` does not live long enough (Mir)
13   --> $DIR/issue-46471-1.rs:16:9
14    |
15 LL |         &mut z
16    |         ^^^^^^
17    |         |
18    |         borrowed value does not live long enough
19    |         borrow later used here
20 LL |     };
21    |     - `z` dropped here while still borrowed
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0597`.