rust/tests/ui/impl-trait/in-trait/bad-item-bound-within-rpitit.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
492 B
Plaintext
Raw Normal View History

error[E0276]: impl has stricter requirements than trait
--> $DIR/bad-item-bound-within-rpitit.rs:16:13
|
LL | type Item<'a>
| ------------- definition of `Item` from trait
...
LL | 'b: 'a;
| ^^ impl has extra requirement `'b: 'a`
|
help: copy the `where` clause predicates from the trait
|
LL | where Self: 'b;
| ~~~~~~~~~~~~~~
2023-07-27 13:23:42 -05:00
error: aborting due to previous error
2023-07-27 13:23:42 -05:00
For more information about this error, try `rustc --explain E0276`.