-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/test/ui/suggestions/lifetimes/missing-lifetimes-in-signature-2.nll.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
error[E0311]: the parameter type `T` may not live long enough | ||
--> $DIR/missing-lifetimes-in-signature-2.rs:20:5 | ||
| | ||
LL | / foo.bar(move |_| { | ||
LL | | | ||
LL | | t.test(); | ||
LL | | }); | ||
| |______^ | ||
| | ||
note: the parameter type `T` must be valid for the anonymous lifetime #2 defined on the function body at 19:1... | ||
--> $DIR/missing-lifetimes-in-signature-2.rs:19:1 | ||
| | ||
LL | fn func<T: Test>(foo: &Foo, t: T) { | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to previous error | ||
|