]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-47470.stderr
Hide some lints which are not quite right the way they are reported to the user
[rust.git] / src / test / ui / nll / issue-47470.stderr
1 error[E0597]: `local` does not live long enough
2   --> $DIR/issue-47470.rs:27:9
3    |
4 LL |         &local //~ ERROR `local` does not live long enough
5    |         ^^^^^^ borrowed value does not live long enough
6 LL |     }
7    |     - borrowed value only lives until here
8    |
9 note: borrowed value must be valid for the lifetime 'a as defined on the impl at 23:6...
10   --> $DIR/issue-47470.rs:23:6
11    |
12 LL | impl<'a> Bar for Foo<'a> {
13    |      ^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0597`.