3 #![feature(staged_api)]
4 #![feature(deprecated_suggestion)]
6 #![stable(since = "1.0.0", feature = "test")]
16 note = "replaced by `replacement`",
17 suggestion = "replacement",
19 #[stable(since = "1.0.0", feature = "test")]
20 fn deprecated(&self) {}
22 fn replacement(&self) {}
28 note = "replaced by `replacement`",
29 suggestion = "replacement",
31 #[stable(since = "1.0.0", feature = "test")]
32 pub fn deprecated() {}
34 pub fn replacement() {}
40 foo.replacement(); //~ ERROR use of deprecated
42 bar::replacement(); //~ ERROR use of deprecated