about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/mismatched-where-clauses.stderr
blob: cc6e027cad7750ca35bf4c81270fef11ff048515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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`.