We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 788e4bb commit fcce998Copy full SHA for fcce998
src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.nll.stderr
@@ -0,0 +1,17 @@
1
+error[E0311]: the parameter type `T` may not live long enough
2
+ --> $DIR/missing-lifetimes-in-signature-2.rs:20:5
3
+ |
4
+LL | / foo.bar(move |_| {
5
+LL | |
6
+LL | | t.test();
7
+LL | | });
8
+ | |______^
9
10
+note: the parameter type `T` must be valid for the anonymous lifetime #2 defined on the function body at 19:1...
11
+ --> $DIR/missing-lifetimes-in-signature-2.rs:19:1
12
13
+LL | fn func<T: Test>(foo: &Foo, t: T) {
14
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15
+
16
+error: aborting due to previous error
17
0 commit comments