]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/borrowed-local-error.stderr
New upstream version 1.35.0+dfsg1
[rustc.git] / src / test / ui / nll / borrowed-local-error.stderr
1 error[E0597]: `v` does not live long enough
2 --> $DIR/borrowed-local-error.rs:10: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`.