2018-09-24 14:36:50 -05:00
|
|
|
error[E0309]: the parameter type `T` may not live long enough
|
|
|
|
--> $DIR/projection-where-clause-none.rs:16:5
|
|
|
|
|
|
2022-04-23 17:17:33 -05:00
|
|
|
LL | fn foo<'a, T>() -> &'a ()
|
|
|
|
| - help: consider adding an explicit lifetime bound...: `T: 'a`
|
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | bar::<T::Output>()
|
2022-04-24 02:36:23 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
|
2018-09-24 14:36:50 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0309`.
|