|
| 1 | +error: implementation of `Parser` is not general enough |
| 2 | + --> $DIR/issue-71955.rs:52:5 |
| 3 | + | |
| 4 | +LL | foo(bar, "string", |s| s.len() == 5); |
| 5 | + | ^^^ implementation of `Parser` is not general enough |
| 6 | + | |
| 7 | + = note: `for<'a> fn(&'a str) -> (&'a str, &'a str) {bar}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 8 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 9 | + |
| 10 | +error: implementation of `Parser` is not general enough |
| 11 | + --> $DIR/issue-71955.rs:52:5 |
| 12 | + | |
| 13 | +LL | foo(bar, "string", |s| s.len() == 5); |
| 14 | + | ^^^ implementation of `Parser` is not general enough |
| 15 | + | |
| 16 | + = note: `for<'a> fn(&'a str) -> (&'a str, &'a str) {bar}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 17 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 18 | + |
| 19 | +error: implementation of `Parser` is not general enough |
| 20 | + --> $DIR/issue-71955.rs:52:5 |
| 21 | + | |
| 22 | +LL | foo(bar, "string", |s| s.len() == 5); |
| 23 | + | ^^^ implementation of `Parser` is not general enough |
| 24 | + | |
| 25 | + = note: `for<'a> fn(&'a str) -> (&'a str, &'a str) {bar}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 26 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 27 | + |
| 28 | +error: implementation of `Parser` is not general enough |
| 29 | + --> $DIR/issue-71955.rs:52:5 |
| 30 | + | |
| 31 | +LL | foo(bar, "string", |s| s.len() == 5); |
| 32 | + | ^^^ implementation of `Parser` is not general enough |
| 33 | + | |
| 34 | + = note: `for<'a> fn(&'a str) -> (&'a str, &'a str) {bar}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 35 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 36 | + |
| 37 | +error: implementation of `Parser` is not general enough |
| 38 | + --> $DIR/issue-71955.rs:52:5 |
| 39 | + | |
| 40 | +LL | foo(bar, "string", |s| s.len() == 5); |
| 41 | + | ^^^ implementation of `Parser` is not general enough |
| 42 | + | |
| 43 | + = note: `for<'a> fn(&'a str) -> (&'a str, &'a str) {bar}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 44 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 45 | + |
| 46 | +error: implementation of `Parser` is not general enough |
| 47 | + --> $DIR/issue-71955.rs:58:5 |
| 48 | + | |
| 49 | +LL | foo(baz, "string", |s| s.0.len() == 5); |
| 50 | + | ^^^ implementation of `Parser` is not general enough |
| 51 | + | |
| 52 | + = note: `for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 53 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 54 | + |
| 55 | +error: implementation of `Parser` is not general enough |
| 56 | + --> $DIR/issue-71955.rs:58:5 |
| 57 | + | |
| 58 | +LL | foo(baz, "string", |s| s.0.len() == 5); |
| 59 | + | ^^^ implementation of `Parser` is not general enough |
| 60 | + | |
| 61 | + = note: `for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 62 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 63 | + |
| 64 | +error: implementation of `Parser` is not general enough |
| 65 | + --> $DIR/issue-71955.rs:58:5 |
| 66 | + | |
| 67 | +LL | foo(baz, "string", |s| s.0.len() == 5); |
| 68 | + | ^^^ implementation of `Parser` is not general enough |
| 69 | + | |
| 70 | + = note: `for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 71 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 72 | + |
| 73 | +error: implementation of `Parser` is not general enough |
| 74 | + --> $DIR/issue-71955.rs:58:5 |
| 75 | + | |
| 76 | +LL | foo(baz, "string", |s| s.0.len() == 5); |
| 77 | + | ^^^ implementation of `Parser` is not general enough |
| 78 | + | |
| 79 | + = note: `for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 80 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 81 | + |
| 82 | +error: implementation of `Parser` is not general enough |
| 83 | + --> $DIR/issue-71955.rs:58:5 |
| 84 | + | |
| 85 | +LL | foo(baz, "string", |s| s.0.len() == 5); |
| 86 | + | ^^^ implementation of `Parser` is not general enough |
| 87 | + | |
| 88 | + = note: `for<'a> fn(&'a str) -> (&'a str, Wrapper<'a>) {baz}` must implement `Parser<'0>`, for any lifetime `'0`... |
| 89 | + = note: ...but it actually implements `Parser<'1>`, for some specific lifetime `'1` |
| 90 | + |
| 91 | +error: aborting due to 10 previous errors |
| 92 | + |
0 commit comments