X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Ffeature-gates%2Fissue-43106-gating-of-rustc_deprecated.rs;h=3acfbd0ca23aedd6b89356c27a504d4b800e8953;hb=5636655d0f0afb0d509cd86ad479773f5854630e;hp=a01d85515a8b72da5ef7ef2a39dba1a3669af84e;hpb=e7bc41176e19930e4c3de355ae53bb915306f299;p=rust.git diff --git a/src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.rs b/src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.rs index a01d85515a8..3acfbd0ca23 100644 --- a/src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.rs +++ b/src/test/ui/feature-gates/issue-43106-gating-of-rustc_deprecated.rs @@ -6,25 +6,38 @@ #![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() {}