1 error[E0597]: `local` does not live long enough
2 --> $DIR/issue-47470.rs:27:9
4 LL | &local //~ ERROR `local` does not live long enough
5 | ^^^^^^ borrowed value does not live long enough
7 | - borrowed value only lives until here
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
12 LL | impl<'a> Bar for Foo<'a> {
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0597`.