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

9 lines
137 B
Rust
Raw Normal View History

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