#[lang = "sized"] pub trait Sized {} trait Foo { fn Bar() -> i32 {} // { dg-error "mismatched types, expected .i32. but got .()." "" { target *-*-* } .-1 } } struct Baz; impl Foo for Baz { fn Barrr() {} // { dg-error "method .Barrr. is not a member of trait .Foo." "" { target *-*-* } .-1 } } fn main() {}