rust/src/test/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.

13 lines
454 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
--> $DIR/projection-where-clause-none.rs:16:5
|
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>()
| ^^^^^^^^^^^^^^^^ ...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`.