rust/src/test/compile-fail/lint-default-methods.rs
2013-01-29 10:43:12 -08:00

9 lines
142 B
Rust

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