]> git.lizzy.rs Git - rust.git/blob - tests/ui/generic-associated-types/missing-where-clause-on-trait.stderr
Rollup merge of #103702 - WaffleLapkin:lift-sized-bounds-from-pointer-methods-where...
[rust.git] / tests / ui / generic-associated-types / missing-where-clause-on-trait.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/missing-where-clause-on-trait.rs:7:39
3    |
4 LL |     type Assoc<'a, 'b>;
5    |     ------------------ definition of `Assoc` from trait
6 ...
7 LL |     type Assoc<'a, 'b> = () where 'a: 'b;
8    |                                       ^^ impl has extra requirement `'a: 'b`
9    |
10 help: remove the `where` clause
11    |
12 LL -     type Assoc<'a, 'b> = () where 'a: 'b;
13 LL +     type Assoc<'a, 'b> = () ;
14    |
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0276`.