#[forbid(default_methods)]; trait Foo { //~ ERROR default methods are experimental fn bar() { io::println("hi"); } } fn main() {}