rust/src/test/compile-fail/lint-default-methods.rs

8 lines
137 B
Rust

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