Files
rust/tests/ui/impl-trait/in-trait/mismatched-where-clauses.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
473 B
Plaintext
Raw Normal View History

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`.