]> git.proxmox.com Git - rustc.git/blame - tests/ui/regions/regions-implied-bounds-projection-gap-1.stderr
New upstream version 1.75.0+dfsg1
[rustc.git] / tests / ui / regions / regions-implied-bounds-projection-gap-1.stderr
CommitLineData
ff7c6d11 1error[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
4LL | 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...
6LL | {
48663c56 7LL | wf::<&'x T>();
04454e1e 8 | ^^^^^^^^^^^ ...so that the type `T` will meet its required lifetime bounds
ff7c6d11 9 |
ed00b5ec 10help: consider adding an explicit lifetime bound
04454e1e
FG
11 |
12LL | fn func<'x, T:Trait1<'x> + 'x>(t: &'x T::Foo)
13 | ++++
ff7c6d11
XL
14
15error: aborting due to previous error
16
0531ce1d 17For more information about this error, try `rustc --explain E0309`.