2021-08-28 16:48:30 -05:00
|
|
|
error: implementation of `Parser` is not general enough
|
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);
|
|
|
|
| ^^^ implementation of `Parser` is not general enough
|
|
|
|
|
|
|
|
|
= note: `for<'a> fn(&'a str) -> (&'a str, &'a str) {bar}` must implement `Parser<'0>`, for any lifetime `'0`...
|
|
|
|
= note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1`
|
|
|
|
|
|
|
|
error: implementation of `Parser` is not general enough
|
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);
|
|
|
|
| ^^^ implementation of `Parser` is not general enough
|
|
|
|
|
|
|
|
|
= note: `for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz}` must implement `Parser<'0>`, for any lifetime `'0`...
|
|
|
|
= note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1`
|
|
|
|
|
2021-11-13 17:45:03 -06:00
|
|
|
error: aborting due to 2 previous errors
|
2021-08-28 16:48:30 -05:00
|
|
|
|