1 error[E0734]: stability attributes may not be used outside of the standard library
2 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:7:1
4 LL | #![rustc_deprecated()]
5 | ^^^^^^^^^^^^^^^^^^^^^^
7 error[E0734]: stability attributes may not be used outside of the standard library
8 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:10:1
10 LL | #[rustc_deprecated()]
11 | ^^^^^^^^^^^^^^^^^^^^^
13 error[E0734]: stability attributes may not be used outside of the standard library
14 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:13:17
16 LL | mod inner { #![rustc_deprecated()] }
17 | ^^^^^^^^^^^^^^^^^^^^^^
19 error[E0734]: stability attributes may not be used outside of the standard library
20 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:16:5
22 LL | #[rustc_deprecated()] fn f() { }
23 | ^^^^^^^^^^^^^^^^^^^^^
25 error[E0734]: stability attributes may not be used outside of the standard library
26 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:19:5
28 LL | #[rustc_deprecated()] struct S;
29 | ^^^^^^^^^^^^^^^^^^^^^
31 error[E0734]: stability attributes may not be used outside of the standard library
32 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:19:5
34 LL | #[rustc_deprecated()] struct S;
35 | ^^^^^^^^^^^^^^^^^^^^^
37 error[E0734]: stability attributes may not be used outside of the standard library
38 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:23:5
40 LL | #[rustc_deprecated()] type T = S;
41 | ^^^^^^^^^^^^^^^^^^^^^
43 error[E0734]: stability attributes may not be used outside of the standard library
44 --> $DIR/issue-43106-gating-of-rustc_deprecated.rs:26:5
46 LL | #[rustc_deprecated()] impl S { }
47 | ^^^^^^^^^^^^^^^^^^^^^
49 error: aborting due to 8 previous errors
51 For more information about this error, try `rustc --explain E0734`.