blob: f238b3c0d135da0716ee157cd2c48248e9939367 [file] [log] [blame]
error[E0309]: the parameter type `T` may not live long enough
--> $DIR/wf-impl-associated-type-region.rs:20:5
|
LL | impl<'a, T> Foo<'a> for T {
| - help: consider adding an explicit lifetime bound `T: 'a`...
LL | type Bar = &'a T; //~ ERROR E0309
| ^^^^^^^^^^^^^^^^^
|
note: ...so that the reference type `&'a T` does not outlive the data it points at
--> $DIR/wf-impl-associated-type-region.rs:20:5
|
LL | type Bar = &'a T; //~ ERROR E0309
| ^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0309`.