1 error[E0311]: the parameter type `T` may not live long enough
2 --> $DIR/missing-lifetimes-in-signature-2.rs:20:5
4 LL | / foo.bar(move |_| {
10 note: the parameter type `T` must be valid for the anonymous lifetime defined here...
11 --> $DIR/missing-lifetimes-in-signature-2.rs:19:24
13 LL | fn func<T: Test>(foo: &Foo, t: T) {
15 note: ...so that the type `T` will meet its required lifetime bounds
16 --> $DIR/missing-lifetimes-in-signature-2.rs:20:5
18 LL | / foo.bar(move |_| {
23 help: consider adding an explicit lifetime bound...
25 LL | fn func<'a, T: Test + 'a>(foo: &Foo, t: T) {
28 error: aborting due to previous error
30 For more information about this error, try `rustc --explain E0311`.