2018-02-27 15:14:41 -06:00
|
|
|
error[E0597]: `local` does not live long enough
|
|
|
|
--> $DIR/issue-47470.rs:27:9
|
|
|
|
|
|
|
|
|
LL | &local //~ ERROR `local` does not live long enough
|
|
|
|
| ^^^^^^ borrowed value does not live long enough
|
|
|
|
LL | }
|
2018-07-22 10:02:31 -05:00
|
|
|
| - `local` dropped here while still borrowed
|
2018-02-27 15:14:41 -06:00
|
|
|
|
|
2018-06-27 18:44:39 -05:00
|
|
|
note: borrowed value must be valid for the lifetime 'a as defined on the impl at 23:6...
|
|
|
|
--> $DIR/issue-47470.rs:23:6
|
2018-02-27 15:14:41 -06:00
|
|
|
|
|
|
|
|
LL | impl<'a> Bar for Foo<'a> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2018-02-27 15:14:41 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0597`.
|