1 // Testing gating of `#[rustc_deprecated]` in "weird" places.
3 // This file sits on its own because these signal errors, making
4 // this test incompatible with the "warnings only" nature of
5 // issue-43106-gating-of-builtin-attrs.rs
8 //~^ ERROR stability attributes may not be used outside of the standard library
9 //~| ERROR missing 'since' [E0542]
12 //~^ ERROR stability attributes may not be used outside of the standard library
13 //~| ERROR missing 'since' [E0542]
14 mod rustc_deprecated {
16 #![rustc_deprecated()]
17 //~^ ERROR stability attributes may not be used outside of the standard library
18 //~| ERROR missing 'since' [E0542]
22 //~^ ERROR stability attributes may not be used outside of the standard library
23 //~| ERROR missing 'since' [E0542]
27 //~^ ERROR stability attributes may not be used outside of the standard library
28 //~| ERROR missing 'since' [E0542]
29 //~| ERROR missing 'since' [E0542]
33 //~^ ERROR stability attributes may not be used outside of the standard library
34 //~| ERROR missing 'since' [E0542]
38 //~^ ERROR stability attributes may not be used outside of the standard library
39 //~| ERROR missing 'since' [E0542]