rust/tests/ui/nll/ty-outlives/projection-where-clause-none.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
461 B
Plaintext
Raw Normal View History

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