blob: 3f098fa37ce5c9b48b48730a75772ae35e05bd23 [file] [log] [blame]
error[E0597]: `z` does not live long enough (Ast)
--> $DIR/issue-46471-1.rs:16:14
|
LL | &mut z
| ^ borrowed value does not live long enough
LL | };
| - `z` dropped here while still borrowed
...
LL | }
| - borrowed value needs to live until here
error[E0597]: `z` does not live long enough (Mir)
--> $DIR/issue-46471-1.rs:16:9
|
LL | &mut z
| ^^^^^^
| |
| borrowed value does not live long enough
| borrow later used here
LL | };
| - `z` dropped here while still borrowed
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0597`.