@@ -4,8 +4,8 @@ error[E0308]: mismatched types
44LL | foo(bar, "string", |s| s.len() == 5);
55 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
66 |
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,)>`
99note: this closure does not fulfill the lifetime requirements
1010 --> $DIR/issue-71955.rs:45:24
1111 |
@@ -23,8 +23,8 @@ error[E0308]: mismatched types
2323LL | foo(bar, "string", |s| s.len() == 5);
2424 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
2525 |
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,)>`
2828note: this closure does not fulfill the lifetime requirements
2929 --> $DIR/issue-71955.rs:45:24
3030 |
@@ -42,8 +42,8 @@ error[E0308]: mismatched types
4242LL | foo(baz, "string", |s| s.0.len() == 5);
4343 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
4444 |
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<'_>,)>`
4747note: this closure does not fulfill the lifetime requirements
4848 --> $DIR/issue-71955.rs:48:24
4949 |
@@ -61,8 +61,8 @@ error[E0308]: mismatched types
6161LL | foo(baz, "string", |s| s.0.len() == 5);
6262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
6363 |
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<'_>,)>`
6666note: this closure does not fulfill the lifetime requirements
6767 --> $DIR/issue-71955.rs:48:24
6868 |
0 commit comments