]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lifetimes/borrowck-let-suggestion.nll.stderr
New upstream version 1.28.0~beta.14+dfsg1
[rustc.git] / src / test / ui / lifetimes / borrowck-let-suggestion.nll.stderr
CommitLineData
94b46f34
XL
1error[E0597]: borrowed value does not live long enough
2 --> $DIR/borrowck-let-suggestion.rs:12:17
83c7162d 3 |
94b46f34
XL
4LL | let mut x = vec![1].iter();
5 | ^^^^^^^ - temporary value only lives until here
6 | |
7 | temporary value does not live long enough
8LL | x.use_mut();
9 | - borrow later used here
10 |
11 = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
83c7162d
XL
12
13error: aborting due to previous error
14
94b46f34 15For more information about this error, try `rustc --explain E0597`.