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

8 lines
141 B
Rust
Raw Normal View History

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