2022-04-01 12:13:25 -05:00
|
|
|
error[E0308]: mismatched types
|
2021-11-13 17:45:03 -06:00
|
|
|
--> $DIR/issue-71955.rs:54:5
|
2021-08-28 16:48:30 -05:00
|
|
|
|
|
|
|
|
LL | foo(bar, "string", |s| s.len() == 5);
|
2022-04-01 12:13:25 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
2021-08-28 16:48:30 -05:00
|
|
|
|
|
2022-04-01 12:13:25 -05:00
|
|
|
= note: expected type `for<'r, 's> FnOnce<(&'r &'s str,)>`
|
|
|
|
found type `for<'r> FnOnce<(&'r &str,)>`
|
|
|
|
note: this closure does not fulfill the lifetime requirements
|
|
|
|
--> $DIR/issue-71955.rs:54:24
|
|
|
|
|
|
|
|
|
LL | foo(bar, "string", |s| s.len() == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
note: the lifetime requirement is introduced here
|
|
|
|
--> $DIR/issue-71955.rs:34:9
|
|
|
|
|
|
|
|
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-71955.rs:54:5
|
|
|
|
|
|
|
|
|
LL | foo(bar, "string", |s| s.len() == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
|
|
|
|
|
|
|
|
= note: expected type `FnOnce<(&&str,)>`
|
|
|
|
found type `for<'r> FnOnce<(&'r &str,)>`
|
|
|
|
note: this closure does not fulfill the lifetime requirements
|
|
|
|
--> $DIR/issue-71955.rs:54:24
|
|
|
|
|
|
|
|
|
LL | foo(bar, "string", |s| s.len() == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
note: the lifetime requirement is introduced here
|
|
|
|
--> $DIR/issue-71955.rs:34:44
|
|
|
|
|
|
|
|
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
|
|
|
|
| ^^^^
|
2021-08-28 16:48:30 -05:00
|
|
|
|
2022-04-01 12:13:25 -05:00
|
|
|
error[E0308]: mismatched types
|
2021-11-13 17:45:03 -06:00
|
|
|
--> $DIR/issue-71955.rs:58:5
|
2021-08-28 16:48:30 -05:00
|
|
|
|
|
|
|
|
LL | foo(baz, "string", |s| s.0.len() == 5);
|
2022-04-01 12:13:25 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
|
|
|
|
|
|
|
|
= note: expected type `for<'r, 's> FnOnce<(&'r Wrapper<'s>,)>`
|
|
|
|
found type `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
|
|
|
|
note: this closure does not fulfill the lifetime requirements
|
|
|
|
--> $DIR/issue-71955.rs:58:24
|
|
|
|
|
|
|
|
|
LL | foo(baz, "string", |s| s.0.len() == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
note: the lifetime requirement is introduced here
|
|
|
|
--> $DIR/issue-71955.rs:34:9
|
|
|
|
|
|
|
|
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-71955.rs:58:5
|
|
|
|
|
|
|
|
|
LL | foo(baz, "string", |s| s.0.len() == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
|
|
|
|
|
|
|
|
|
= note: expected type `FnOnce<(&Wrapper<'_>,)>`
|
|
|
|
found type `for<'r> FnOnce<(&'r Wrapper<'_>,)>`
|
|
|
|
note: this closure does not fulfill the lifetime requirements
|
|
|
|
--> $DIR/issue-71955.rs:58:24
|
|
|
|
|
|
|
|
|
LL | foo(baz, "string", |s| s.0.len() == 5);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
note: the lifetime requirement is introduced here
|
|
|
|
--> $DIR/issue-71955.rs:34:44
|
2021-08-28 16:48:30 -05:00
|
|
|
|
|
2022-04-01 12:13:25 -05:00
|
|
|
LL | F2: FnOnce(&<F1 as Parser>::Output) -> bool
|
|
|
|
| ^^^^
|
2021-08-28 16:48:30 -05:00
|
|
|
|
2022-04-01 12:13:25 -05:00
|
|
|
error: aborting due to 4 previous errors
|
2021-08-28 16:48:30 -05:00
|
|
|
|
2022-04-01 12:13:25 -05:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|