#![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
-#[rustc_deprecated(reason)] // error!
+#[deprecated(note)] // error!
#[unstable(feature = "deprecated_fn", issue = "123")]
fn deprecated() {}
#![feature(staged_api)]
#![stable(since = "1.0.0", feature = "test")]
-#[rustc_deprecated(since = "1.39.0", reason = "reason")] // ok!
+#[deprecated(since = "1.39.0", note = "reason")] // ok!
#[unstable(feature = "deprecated_fn", issue = "123")]
fn deprecated() {}