blob: a2c735cc126a3893f2ec3bc5a6c3ddd673ed3c5c [file] [log] [blame]
trait Foo {
fn foo<S>(s: S) -> impl Sized;
}
trait Bar {}
impl Foo for () {
fn foo<S>(s: S) -> impl Sized where S: Bar {}
//~^ ERROR impl has stricter requirements than trait
}
fn main() {}