rust/src/test/compile-fail/lint-default-methods.rs
2013-05-03 20:01:42 -04:00

8 lines
141 B
Rust

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