]>
Commit | Line | Data |
---|---|---|
94b46f34 XL |
1 | error[E0597]: borrowed value does not live long enough |
2 | --> $DIR/borrowck-let-suggestion.rs:12:17 | |
83c7162d | 3 | | |
94b46f34 XL |
4 | LL | let mut x = vec![1].iter(); |
5 | | ^^^^^^^ - temporary value only lives until here | |
6 | | | | |
7 | | temporary value does not live long enough | |
8 | LL | 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 | |
13 | error: aborting due to previous error | |
14 | ||
94b46f34 | 15 | For more information about this error, try `rustc --explain E0597`. |