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

21 lines
263 B
Rust

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