]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/region-extra.stderr
Rollup merge of #106248 - dtolnay:revertupcastlint, r=jackh726
[rust.git] / src / test / ui / compare-method / region-extra.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/region-extra.rs:9:24
3    |
4 LL |     fn foo();
5    |     --------- definition of `foo` from trait
6 ...
7 LL |     fn foo() where 'a: 'b { }
8    |                        ^^ impl has extra requirement `'a: 'b`
9    |
10 help: remove the `where` clause
11    |
12 LL -     fn foo() where 'a: 'b { }
13 LL +     fn foo()  { }
14    |
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0276`.