]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/range-2.nll.stderr
Rollup merge of #52695 - oli-obk:const_err_panic, r=petrochenkov
[rust.git] / src / test / ui / span / range-2.nll.stderr
1 error[E0597]: `b` does not live long enough
2   --> $DIR/range-2.rs:17:13
3    |
4 LL |         &a..&b
5    |             ^^ borrowed value does not live long enough
6 LL |     };
7    |     - `b` dropped here while still borrowed
8 ...
9 LL |     r.use_ref();
10    |     - borrow later used here
11
12 error[E0597]: `a` does not live long enough
13   --> $DIR/range-2.rs:17:9
14    |
15 LL |         &a..&b
16    |         ^^ borrowed value does not live long enough
17 LL |     };
18    |     - `a` dropped here while still borrowed
19 ...
20 LL |     r.use_ref();
21    |     - borrow later used here
22
23 error: aborting due to 2 previous errors
24
25 For more information about this error, try `rustc --explain E0597`.