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