]> git.lizzy.rs Git - rust.git/blob - src/test/ui/compare-method/trait-bound-on-type-parameter.stderr
Rollup merge of #102345 - chenyukang:fix-102182-impl-trait, r=estebank
[rust.git] / src / test / ui / compare-method / trait-bound-on-type-parameter.stderr
1 error[E0276]: impl has stricter requirements than trait
2   --> $DIR/trait-bound-on-type-parameter.rs:15:13
3    |
4 LL |   fn b<C,D>(&self, x: C) -> C;
5    |   ---------------------------- definition of `b` from trait
6 ...
7 LL |     fn b<F: Sync, G>(&self, _x: F) -> F { panic!() }
8    |             ^^^^ impl has extra requirement `F: Sync`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0276`.