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