]> git.lizzy.rs Git - rust.git/blob - src/test/ui/wf/wf-impl-associated-type-region.stderr
Auto merge of #72717 - poliorcetics:try-from-int-to-nzint, r=dtolnay
[rust.git] / src / test / ui / wf / wf-impl-associated-type-region.stderr
1 error[E0309]: the parameter type `T` may not live long enough
2   --> $DIR/wf-impl-associated-type-region.rs:10:5
3    |
4 LL | impl<'a, T> Foo<'a> for T {
5    |          - help: consider adding an explicit lifetime bound...: `T: 'a`
6 LL |     type Bar = &'a T;
7    |     ^^^^^^^^^^^^^^^^^ ...so that the reference type `&'a T` does not outlive the data it points at
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0309`.