rust/src/test/ui/nll/borrowed-temporary-error.stderr

17 lines
589 B
Plaintext
Raw Normal View History

error[E0597]: borrowed value does not live long enough
--> $DIR/borrowed-temporary-error.rs:20:10
|
LL | &(v,)
| ^^^^ temporary value does not live long enough
LL | //~^ ERROR borrowed value does not live long enough [E0597]
LL | });
| - temporary value only lives until here
LL | println!("{:?}", x);
| - borrow later used here
|
= note: consider using a `let` binding to create a longer lived value
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0597`.