1 2 3 4 5 6 7 8 9 10 11 12 13 14
// compile-flags: -Z track-diagnostics // error-pattern: created at pub trait Foo { fn bar(); } impl <T> Foo for T { default fn bar() {} } fn main() {}