Skip to content

Commit fcce998

Browse files
committedFeb 12, 2021
Add nll test
1 parent 788e4bb commit fcce998

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.