]> git.lizzy.rs Git - rust.git/blob - src/test/ui/stability-attribute/stability-attribute-sanity.stderr
Auto merge of #79945 - jackh726:existential_trait_ref, r=nikomatsakis
[rust.git] / src / test / ui / stability-attribute / stability-attribute-sanity.stderr
1 error[E0541]: unknown meta item 'reason'
2   --> $DIR/stability-attribute-sanity.rs:8:42
3    |
4 LL |     #[stable(feature = "a", since = "b", reason)]
5    |                                          ^^^^^^ expected one of `since`, `note`
6
7 error[E0539]: incorrect meta item
8   --> $DIR/stability-attribute-sanity.rs:11:29
9    |
10 LL |     #[stable(feature = "a", since)]
11    |                             ^^^^^
12
13 error[E0539]: incorrect meta item
14   --> $DIR/stability-attribute-sanity.rs:14:14
15    |
16 LL |     #[stable(feature, since = "a")]
17    |              ^^^^^^^
18
19 error[E0539]: incorrect meta item
20   --> $DIR/stability-attribute-sanity.rs:17:29
21    |
22 LL |     #[stable(feature = "a", since(b))]
23    |                             ^^^^^^^^
24
25 error[E0539]: incorrect meta item
26   --> $DIR/stability-attribute-sanity.rs:20:14
27    |
28 LL |     #[stable(feature(b), since = "a")]
29    |              ^^^^^^^^^^
30
31 error[E0546]: missing 'feature'
32   --> $DIR/stability-attribute-sanity.rs:25:5
33    |
34 LL |     #[unstable(issue = "none")]
35    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 error[E0547]: missing 'issue'
38   --> $DIR/stability-attribute-sanity.rs:28:5
39    |
40 LL |     #[unstable(feature = "b")]
41    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
42
43 error[E0546]: missing 'feature'
44   --> $DIR/stability-attribute-sanity.rs:31:5
45    |
46 LL |     #[stable(since = "a")]
47    |     ^^^^^^^^^^^^^^^^^^^^^^
48
49 error[E0542]: missing 'since'
50   --> $DIR/stability-attribute-sanity.rs:36:5
51    |
52 LL |     #[stable(feature = "a")]
53    |     ^^^^^^^^^^^^^^^^^^^^^^^^
54
55 error[E0542]: missing 'since'
56   --> $DIR/stability-attribute-sanity.rs:40:5
57    |
58 LL |     #[rustc_deprecated(reason = "a")]
59    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
61 error[E0543]: missing 'reason'
62   --> $DIR/stability-attribute-sanity.rs:44:5
63    |
64 LL |     #[rustc_deprecated(since = "a")]
65    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67 error[E0544]: multiple stability levels
68   --> $DIR/stability-attribute-sanity.rs:49:1
69    |
70 LL | #[stable(feature = "a", since = "b")]
71    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72
73 error[E0544]: multiple stability levels
74   --> $DIR/stability-attribute-sanity.rs:53:1
75    |
76 LL | #[unstable(feature = "b", issue = "none")]
77    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
78
79 error[E0544]: multiple stability levels
80   --> $DIR/stability-attribute-sanity.rs:57:1
81    |
82 LL | #[stable(feature = "a", since = "b")]
83    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84
85 error[E0550]: multiple deprecated attributes
86   --> $DIR/stability-attribute-sanity.rs:62:1
87    |
88 LL | #[rustc_deprecated(since = "b", reason = "text")]
89    | ------------------------------------------------- first deprecation attribute
90 LL | #[rustc_deprecated(since = "b", reason = "text")]
91    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ repeated deprecation attribute
92
93 error[E0544]: multiple stability levels
94   --> $DIR/stability-attribute-sanity.rs:64:1
95    |
96 LL | #[rustc_const_unstable(feature = "d", issue = "none")]
97    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
99 error: Invalid stability version found
100   --> $DIR/stability-attribute-sanity.rs:65:1
101    |
102 LL | pub const fn multiple4() { }
103    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
105 error: Invalid deprecation version found
106   --> $DIR/stability-attribute-sanity.rs:70:1
107    |
108 LL | fn invalid_deprecation_version() {}
109    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
111 error[E0549]: rustc_deprecated attribute must be paired with either stable or unstable attribute
112   --> $DIR/stability-attribute-sanity.rs:72:1
113    |
114 LL | #[rustc_deprecated(since = "a", reason = "text")]
115    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
117 error: aborting due to 19 previous errors
118
119 Some errors have detailed explanations: E0539, E0541, E0546, E0550.
120 For more information about an error, try `rustc --explain E0539`.