]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/borrowed-local-error.stderr
Merge branch 'refactor-select' of https://github.com/aravind-pg/rust into update...
[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:22:9
3    |
4 LL |       let x = gimme({
5    |  _____________-
6 LL | |         let v = (22,);
7 LL | |         &v
8    | |         ^^ borrowed value does not live long enough
9 LL | |         //~^ ERROR `v` does not live long enough [E0597]
10 LL | |     });
11    | |_____-- borrow later used here
12    |       |
13    |       borrowed value only lives until here
14
15 error: aborting due to previous error
16
17 If you want more information on this error, try using "rustc --explain E0597"