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