#![rustc_deprecated()]
//~^ ERROR stability attributes may not be used outside of the standard library
+//~| ERROR missing 'since' [E0542]
#[rustc_deprecated()]
//~^ ERROR stability attributes may not be used outside of the standard library
+//~| ERROR missing 'since' [E0542]
mod rustc_deprecated {
- mod inner { #![rustc_deprecated()] }
- //~^ ERROR stability attributes may not be used outside of the standard library
+ mod inner {
+ #![rustc_deprecated()]
+ //~^ ERROR stability attributes may not be used outside of the standard library
+ //~| ERROR missing 'since' [E0542]
+ }
- #[rustc_deprecated()] fn f() { }
+ #[rustc_deprecated()]
//~^ ERROR stability attributes may not be used outside of the standard library
+ //~| ERROR missing 'since' [E0542]
+ fn f() {}
- #[rustc_deprecated()] struct S;
+ #[rustc_deprecated()]
//~^ ERROR stability attributes may not be used outside of the standard library
- //~| ERROR stability attributes may not be used outside of the standard library
+ //~| ERROR missing 'since' [E0542]
+ //~| ERROR missing 'since' [E0542]
+ struct S;
- #[rustc_deprecated()] type T = S;
+ #[rustc_deprecated()]
//~^ ERROR stability attributes may not be used outside of the standard library
+ //~| ERROR missing 'since' [E0542]
+ type T = S;
- #[rustc_deprecated()] impl S { }
+ #[rustc_deprecated()]
//~^ ERROR stability attributes may not be used outside of the standard library
+ //~| ERROR missing 'since' [E0542]
+ impl S {}
}
fn main() {}