fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
669 B25 linesraw
1error[E0597]: `a` does not live long enough
2  --> $DIR/range-2.rs:7:9
3   |
4LL |     let r = {
5   |         - borrow later stored here
6...
7LL |         &a..&b
8   |         ^^ borrowed value does not live long enough
9LL |     };
10   |     - `a` dropped here while still borrowed
11
12error[E0597]: `b` does not live long enough
13  --> $DIR/range-2.rs:7:13
14   |
15LL |     let r = {
16   |         - borrow later stored here
17...
18LL |         &a..&b
19   |             ^^ borrowed value does not live long enough
20LL |     };
21   |     - `b` dropped here while still borrowed
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0597`.