fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0597]: `a` does not live long enough 2 --> $DIR/range-2.rs:7:9 3 | 4LL | let r = { 5 | - borrow later stored here 6LL | let a = 42; 7 | - binding `a` declared here 8LL | let b = 42; 9LL | &a..&b 10 | ^^ borrowed value does not live long enough 11LL | }; 12 | - `a` dropped here while still borrowed 13 14error[E0597]: `b` does not live long enough 15 --> $DIR/range-2.rs:7:13 16 | 17LL | let r = { 18 | - borrow later stored here 19LL | let a = 42; 20LL | let b = 42; 21 | - binding `b` declared here 22LL | &a..&b 23 | ^^ borrowed value does not live long enough 24LL | }; 25 | - `b` dropped here while still borrowed 26 27error: aborting due to 2 previous errors 28 29For more information about this error, try `rustc --explain E0597`.