]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0309]: the parameter type `T` may not live long enough |
923072b8 | 2 | --> $DIR/regions-implied-bounds-projection-gap-1.rs:16:5 |
ff7c6d11 | 3 | | |
ed00b5ec FG |
4 | LL | fn func<'x, T:Trait1<'x>>(t: &'x T::Foo) |
5 | | -- the parameter type `T` must be valid for the lifetime `'x` as defined here... | |
6 | LL | { | |
48663c56 | 7 | LL | wf::<&'x T>(); |
04454e1e | 8 | | ^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds |
ff7c6d11 | 9 | | |
ed00b5ec | 10 | help: consider adding an explicit lifetime bound |
04454e1e FG |
11 | | |
12 | LL | fn func<'x, T:Trait1<'x> + 'x>(t: &'x T::Foo) | |
13 | | ++++ | |
ff7c6d11 XL |
14 | |
15 | error: aborting due to previous error | |
16 | ||
0531ce1d | 17 | For more information about this error, try `rustc --explain E0309`. |