rust/src/test/compile-fail/lint-default-methods.rs
2012-12-18 14:35:53 -08:00

9 lines
137 B
Rust

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