1 error[E0597]: `a` does not live long enough
2 --> $DIR/range-2.rs:7:10
5 | ^ borrowed value does not live long enough
7 | - `a` dropped here while still borrowed
10 | - borrowed value needs to live until here
12 error[E0597]: `b` does not live long enough
13 --> $DIR/range-2.rs:7:14
16 | ^ borrowed value does not live long enough
18 | - `b` dropped here while still borrowed
21 | - borrowed value needs to live until here
23 error: aborting due to 2 previous errors
25 For more information about this error, try `rustc --explain E0597`.