about summary refs log tree commit diff
path: root/src/test/ui/deprecation/suggestion.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/deprecation/suggestion.fixed')
-rw-r--r--src/test/ui/deprecation/suggestion.fixed43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/test/ui/deprecation/suggestion.fixed b/src/test/ui/deprecation/suggestion.fixed
deleted file mode 100644
index d9fa2b56eee..00000000000
--- a/src/test/ui/deprecation/suggestion.fixed
+++ /dev/null
@@ -1,43 +0,0 @@
-// run-rustfix
-
-#![feature(staged_api)]
-#![feature(deprecated_suggestion)]
-
-#![stable(since = "1.0.0", feature = "test")]
-
-#![deny(deprecated)]
-#![allow(dead_code)]
-
-struct Foo;
-
-impl Foo {
-    #[deprecated(
-        since = "1.0.0",
-        note = "replaced by `replacement`",
-        suggestion = "replacement",
-    )]
-    #[stable(since = "1.0.0", feature = "test")]
-    fn deprecated(&self) {}
-
-    fn replacement(&self) {}
-}
-
-mod bar {
-    #[deprecated(
-    since = "1.0.0",
-    note = "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
-}