]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/missing-where-clause-on-trait.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / 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:9: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 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0276`.