]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/borrowed-local-error.stderr
Rollup merge of #105216 - GuillaumeGomez:rm-unused-gui-test, r=notriddle
[rust.git] / src / test / ui / nll / borrowed-local-error.stderr
1 error[E0597]: `v` does not live long enough
2   --> $DIR/borrowed-local-error.rs:8:9
3    |
4 LL |     let x = gimme({
5    |             ----- borrow later used by call
6 LL |         let v = (22,);
7 LL |         &v
8    |         ^^ borrowed value does not live long enough
9 LL |
10 LL |     });
11    |     - `v` dropped here while still borrowed
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0597`.