@@ -4,8 +4,8 @@ error[E0308]: mismatched types
4
4
LL | foo(bar, "string", |s| s.len() == 5);
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
6
6
|
7
- = note: expected type `for<'r, 's> FnOnce<(&'r &'s str,)>`
8
- found type `for<'r> FnOnce<(&'r &str,)>`
7
+ = note: expected trait `for<'r, 's> FnOnce<(&'r &'s str,)>`
8
+ found trait `for<'r> FnOnce<(&'r &str,)>`
9
9
note: this closure does not fulfill the lifetime requirements
10
10
--> $DIR/issue-71955.rs:45:24
11
11
|
@@ -23,8 +23,8 @@ error[E0308]: mismatched types
23
23
LL | foo(bar, "string", |s| s.len() == 5);
24
24
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
25
25
|
26
- = note: expected type `FnOnce<(&&str,)>`
27
- found type `for<'r> FnOnce<(&'r &str,)>`
26
+ = note: expected trait `FnOnce<(&&str,)>`
27
+ found trait `for<'r> FnOnce<(&'r &str,)>`
28
28
note: this closure does not fulfill the lifetime requirements
29
29
--> $DIR/issue-71955.rs:45:24
30
30
|
@@ -42,8 +42,8 @@ error[E0308]: mismatched types
42
42
LL | foo(baz, "string", |s| s.0.len() == 5);
43
43
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
44
44
|
45
- = note: expected type `for<'r, 's> FnOnce<(&'r Wrapper<'s>,)>`
46
- found type `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
45
+ = note: expected trait `for<'r, 's> FnOnce<(&'r Wrapper<'s>,)>`
46
+ found trait `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
47
47
note: this closure does not fulfill the lifetime requirements
48
48
--> $DIR/issue-71955.rs:48:24
49
49
|
@@ -61,8 +61,8 @@ error[E0308]: mismatched types
61
61
LL | foo(baz, "string", |s| s.0.len() == 5);
62
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
63
63
|
64
- = note: expected type `FnOnce<(&Wrapper<'_>,)>`
65
- found type `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
64
+ = note: expected trait `FnOnce<(&Wrapper<'_>,)>`
65
+ found trait `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
66
66
note: this closure does not fulfill the lifetime requirements
67
67
--> $DIR/issue-71955.rs:48:24
68
68
|
0 commit comments