blob: cc6e027cad7750ca35bf4c81270fef11ff048515 [file] [log] [blame]
error[E0276]: impl has stricter requirements than trait
--> $DIR/mismatched-where-clauses.rs:8:44
|
LL | fn foo<S>(s: S) -> impl Sized;
| ------------------------------ definition of `foo` from trait
...
LL | fn foo<S>(s: S) -> impl Sized where S: Bar {}
| ^^^ impl has extra requirement `S: Bar`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0276`.