1 2 3 4 5 6 7 8
#[forbid(default_methods)]; trait Foo { //~ ERROR default methods are experimental fn bar() { io::println("hi"); } } fn main() {}