18 lines
539 B
Plaintext
18 lines
539 B
Plaintext
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
|
|
|
|
If you want more information on this error, try using "rustc --explain E0597"
|