]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-implied-bounds-projection-gap-1.stderr
Auto merge of #56079 - mark-i-m:patch-1, r=nikomatsakis
[rust.git] / src / test / ui / regions / regions-implied-bounds-projection-gap-1.stderr
1 error[E0309]: the parameter type `T` may not live long enough
2   --> $DIR/regions-implied-bounds-projection-gap-1.rs:16:10
3    |
4 LL | fn func<'x, T:Trait1<'x>>(t: &'x T::Foo)
5    |             -- help: consider adding an explicit lifetime bound `T: 'x`...
6 LL | {
7 LL |     wf::<&'x T>();
8    |          ^^^^^
9    |
10 note: ...so that the reference type `&'x T` does not outlive the data it points at
11   --> $DIR/regions-implied-bounds-projection-gap-1.rs:16:10
12    |
13 LL |     wf::<&'x T>();
14    |          ^^^^^
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0309`.