]> git.lizzy.rs Git - rust.git/blob - tests/ui/span/regions-escape-loop-via-variable.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / 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:13
3    |
4 LL |         let x = 1 + *p;
5    |                     -- borrow later used here
6 LL |         p = &x;
7    |             ^^ borrowed value does not live long enough
8 LL |     }
9    |     - `x` dropped here while still borrowed
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0597`.