fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0311]: the parameter type `T` may not live long enough 2 --> $DIR/missing-lifetimes-in-signature-2.rs:23:5 3 | 4LL | / foo.bar(move |_| { 5LL | | 6LL | | t.test(); 7LL | | }); 8 | |______^ 9 | 10note: the parameter type `T` must be valid for the anonymous lifetime defined here... 11 --> $DIR/missing-lifetimes-in-signature-2.rs:22:24 12 | 13LL | fn func<T: Test>(foo: &Foo, t: T) { 14 | ^^^ 15note: ...so that the type `T` will meet its required lifetime bounds 16 --> $DIR/missing-lifetimes-in-signature-2.rs:23:5 17 | 18LL | / foo.bar(move |_| { 19LL | | 20LL | | t.test(); 21LL | | }); 22 | |______^ 23help: consider adding an explicit lifetime bound... 24 | 25LL | fn func<'a, T: Test + 'a>(foo: &'a Foo<'a>, t: T) { 26 | +++ ++++ ++ ++++ 27 28error: aborting due to previous error 29 30For more information about this error, try `rustc --explain E0311`.