rust/src/test/compile-fail/lint-deprecated-self.rs

21 lines
265 B
Rust

#[forbid(deprecated_self)]
mod a {
trait T {
fn f(); //~ ERROR this method form is deprecated
}
struct S {
x: int
}
impl T for S {
fn f() { //~ ERROR this method form is deprecated
}
}
}
fn main() {
}