]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/deprecation/suggestion.fixed
Cache expansion hash.
[rust.git] / src / test / ui / deprecation / suggestion.fixed
index 1ba1821e6c18b1f8bf202f42b3745ba71a56f393..eba72f88a89115cefd1c018221477a124d41d7f4 100644 (file)
@@ -1,7 +1,9 @@
 // run-rustfix
 
 #![feature(staged_api)]
+
 #![stable(since = "1.0.0", feature = "test")]
+
 #![deny(deprecated)]
 #![allow(dead_code)]
 
@@ -19,21 +21,8 @@ impl Foo {
     fn replacement(&self) {}
 }
 
-mod bar {
-    #[rustc_deprecated(
-    since = "1.0.0",
-    reason = "replaced by `replacement`",
-    suggestion = "replacement",
-    )]
-    #[stable(since = "1.0.0", feature = "test")]
-    pub fn deprecated() {}
-
-    pub fn replacement() {}
-}
-
 fn main() {
     let foo = Foo;
-    foo.replacement(); //~ ERROR use of deprecated
 
-    bar::replacement(); //~ ERROR use of deprecated
+    foo.replacement(); //~ ERROR use of deprecated
 }