fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
495 B15 linesraw
1error[E0597]: `line` does not live long enough
2  --> $DIR/issue-52126-assign-op-invariance.rs:34:28
3   |
4LL |         let v: Vec<&str> = line.split_whitespace().collect();
5   |                            ^^^^ borrowed value does not live long enough
6...
7LL |         acc += cnt2;
8   |         --- borrow later used here
9...
10LL |     }
11   |     - `line` dropped here while still borrowed
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0597`.