]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/regions-escape-loop-via-variable.stderr
Rollup merge of #59026 - GuillaumeGomez:search-tabs-header, r=QuietMisdreavus
[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:11: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 |
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`.