summary refs log tree commit diff
path: root/src/test/ui/nll/borrowed-local-error.stderr
blob: 901b1ca271a5f6ef24b5c82e40c5ded39e3d6717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0597]: `v` does not live long enough
  --> $DIR/borrowed-local-error.rs:20:9
   |
LL |       let x = gimme({
   |  _____________-
LL | |         let v = (22,);
LL | |         &v
   | |         ^^ borrowed value does not live long enough
LL | |         //~^ ERROR `v` does not live long enough [E0597]
LL | |     });
   | |_____-- borrow later used here
   |       |
   |       borrowed value only lives until here

error: aborting due to previous error

For more information about this error, try `rustc --explain E0597`.