2019-05-02 22:34:15 +00:00
|
|
|
error[E0597]: `z` does not live long enough
|
|
|
|
--> $DIR/issue-46471-1.rs:4:9
|
2017-12-10 20:36:42 +00:00
|
|
|
|
|
2023-01-15 03:06:44 +00:00
|
|
|
LL | let mut z = 0;
|
|
|
|
| ----- binding `z` declared here
|
2018-08-25 11:13:28 +00:00
|
|
|
LL | &mut z
|
2023-01-15 03:06:44 +00:00
|
|
|
| ^^^^^^ borrowed value does not live long enough
|
2018-08-25 11:13:28 +00:00
|
|
|
LL | };
|
|
|
|
| - `z` dropped here while still borrowed
|
2017-12-10 20:36:42 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-10 20:36:42 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|