]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lifetimes/borrowck-let-suggestion.stderr
c78b09a86a49d1b70dde3dfa8291ed8720802b38
[rustc.git] / src / test / ui / lifetimes / borrowck-let-suggestion.stderr
1 error[E0597]: borrowed value does not live long enough
2 --> $DIR/borrowck-let-suggestion.rs:12:13
3 |
4 LL | let x = vec![1].iter();
5 | ^^^^^^^ - temporary value dropped here while still borrowed
6 | |
7 | temporary value does not live long enough
8 LL | }
9 | - temporary value needs to live until here
10 |
11 = note: consider using a `let` binding to increase its lifetime
12 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0597`.