summaryrefslogtreecommitdiffstats
path: root/tests/ui/impl-trait/in-trait/bad-item-bound-within-rpitit.stderr
blob: 106b8a7c80474e7f6e06911c4f6dfb8300887c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
   |     ~~~~~~~~~~~~~~

error: aborting due to previous error

For more information about this error, try `rustc --explain E0276`.