]> git.lizzy.rs Git - rust.git/blob - src/test/ui/fn/implied-bounds-unnorm-associated-type-5.stderr
Auto merge of #106349 - LeSeulArtichaut:dyn-star-tracking-issue, r=jackh726
[rust.git] / src / test / ui / fn / implied-bounds-unnorm-associated-type-5.stderr
1 error[E0309]: the parameter type `T` may not live long enough
2   --> $DIR/implied-bounds-unnorm-associated-type-5.rs:6:13
3    |
4 LL | impl<'a, T> Trait<'a> for T {
5    |             ^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds...
6    |
7 note: ...that is required by this bound
8   --> $DIR/implied-bounds-unnorm-associated-type-5.rs:1:18
9    |
10 LL | trait Trait<'a>: 'a {
11    |                  ^^
12 help: consider adding an explicit lifetime bound...
13    |
14 LL | impl<'a, T: 'a> Trait<'a> for T {
15    |           ++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0309`.