// There's a suggestion that turns `Iterator` into `Iterator` // if we have more generics than the trait wants. Let's not consider RPITITs // for this, since that makes no sense right now. trait Foo { fn bar(self) -> impl Sized; } impl Foo for () { //~^ ERROR trait takes 0 generic arguments but 1 generic argument was supplied fn bar(self) -> impl Sized {} } fn main() {}