blob: 5d09038076f982efb933977620d15ee74df9bceb [file] [log] [blame]
error[E0276]: impl has stricter requirements than trait
--> $DIR/trait-bound-on-type-parameter.rs:15:5
|
LL | fn b<C,D>(&self, x: C) -> C;
| ---------------------------- definition of `b` from trait
...
LL | fn b<F: Sync, G>(&self, _x: F) -> F { panic!() }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ impl has extra requirement `F: std::marker::Sync`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0276`.