]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/regions-escape-loop-via-variable.nll.stderr
Hide some lints which are not quite right the way they are reported to the user
[rust.git] / src / test / ui / span / regions-escape-loop-via-variable.nll.stderr
1 error[E0597]: `x` does not live long enough
2   --> $DIR/regions-escape-loop-via-variable.rs:21: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    |     - borrowed value only lives until here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0597`.