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