]>
Commit | Line | Data |
---|---|---|
f035d41b XL |
1 | error: implementation of `Foo` is not general enough |
2 | --> $DIR/hrtb-conflate-regions.rs:27:10 | |
b7449926 | 3 | | |
6a06907d | 4 | LL | fn b() { want_foo2::<SomeStruct>(); } |
923072b8 | 5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough |
b7449926 | 6 | | |
f035d41b | 7 | = note: `SomeStruct` must implement `Foo<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`... |
6a06907d | 8 | = note: ...but it actually implements `Foo<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2` |
b7449926 | 9 | |
923072b8 FG |
10 | error: implementation of `Foo` is not general enough |
11 | --> $DIR/hrtb-conflate-regions.rs:27:10 | |
12 | | | |
13 | LL | fn b() { want_foo2::<SomeStruct>(); } | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough | |
15 | | | |
16 | = note: `SomeStruct` must implement `Foo<(&'0 isize, &'1 isize)>`, for any two lifetimes `'0` and `'1`... | |
17 | = note: ...but it actually implements `Foo<(&'2 isize, &'2 isize)>`, for some specific lifetime `'2` | |
18 | ||
19 | error: aborting due to 2 previous errors | |
b7449926 | 20 |