]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/regions-escape-loop-via-variable.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / span / regions-escape-loop-via-variable.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/regions-escape-loop-via-variable.rs:21:14
3    |
4 LL |         p = &x;
5    |              ^ borrowed value does not live long enough
6 LL |     }
7    |     - `x` dropped here while still borrowed
8 LL |     //~^^ ERROR `x` does not live long enough
9 LL | }
10    | - borrowed value needs to live until here
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.