You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/test/ui/mismatched_types/closure-mismatch.stderr
+5-2
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,14 @@ error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/closure-mismatch.r
8
8
= note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]`
9
9
= note: required by `baz`
10
10
11
-
error[E0594]: closure mismatch: `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]` implements the trait `std::ops::Fn<(_,)>`, but the trait `for<'r> std::ops::Fn<(&'r (),)>` is required
11
+
error[E0281]: type mismatch: `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]` implements the trait `std::ops::Fn<(_,)>`, but the trait `for<'r> std::ops::Fn<(&'r (),)>` is required
12
12
--> $DIR/closure-mismatch.rs:18:5
13
13
|
14
14
18 | baz(|_| ());
15
-
| ^^^ ------ expected concrete lifetime, found bound lifetime parameter
15
+
| ^^^ ------ implements `std::ops::Fn<(_,)>`
16
+
| |
17
+
| requires `for<'r> std::ops::Fn<(&'r (),)>`
18
+
| expected concrete lifetime, found bound lifetime parameter
16
19
|
17
20
= note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]`
0 commit comments