rust/tests/ui/stability-attribute/stability-attribute-sanity.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

137 lines
4.2 KiB
Plaintext
Raw Normal View History

2022-04-12 00:43:42 +00:00
error: multiple `deprecated` attributes
--> $DIR/stability-attribute-sanity.rs:62:1
|
LL | #[deprecated(since = "b", note = "text")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
note: attribute also specified here
--> $DIR/stability-attribute-sanity.rs:61:1
|
LL | #[deprecated(since = "b", note = "text")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0541]: unknown meta item 'reason'
2018-12-25 15:56:47 +00:00
--> $DIR/stability-attribute-sanity.rs:8:42
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature = "a", since = "b", reason)]
| ^^^^^^ expected one of `feature`, `since`
2018-08-08 12:28:26 +00:00
error[E0539]: incorrect meta item
2018-12-25 15:56:47 +00:00
--> $DIR/stability-attribute-sanity.rs:11:29
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature = "a", since)]
2018-08-08 12:28:26 +00:00
| ^^^^^
error[E0539]: incorrect meta item
2018-12-25 15:56:47 +00:00
--> $DIR/stability-attribute-sanity.rs:14:14
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature, since = "a")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^
error[E0539]: incorrect meta item
2018-12-25 15:56:47 +00:00
--> $DIR/stability-attribute-sanity.rs:17:29
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature = "a", since(b))]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^
error[E0539]: incorrect meta item
2018-12-25 15:56:47 +00:00
--> $DIR/stability-attribute-sanity.rs:20:14
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature(b), since = "a")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^
error[E0546]: missing 'feature'
--> $DIR/stability-attribute-sanity.rs:25:5
2018-08-08 12:28:26 +00:00
|
LL | #[unstable(issue = "none")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0547]: missing 'issue'
--> $DIR/stability-attribute-sanity.rs:28:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[unstable(feature = "b")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0546]: missing 'feature'
--> $DIR/stability-attribute-sanity.rs:31:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(since = "a")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^
error[E0542]: missing 'since'
--> $DIR/stability-attribute-sanity.rs:36:5
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature = "a")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0542]: missing 'since'
--> $DIR/stability-attribute-sanity.rs:40:5
2018-08-08 12:28:26 +00:00
|
2022-03-05 02:59:18 +00:00
LL | #[deprecated(note = "a")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0543]: missing 'note'
2019-09-26 11:24:41 +00:00
--> $DIR/stability-attribute-sanity.rs:44:5
|
2022-03-05 02:59:18 +00:00
LL | #[deprecated(since = "a")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-09-26 11:24:41 +00:00
2018-08-08 12:28:26 +00:00
error[E0544]: multiple stability levels
2019-09-26 11:24:41 +00:00
--> $DIR/stability-attribute-sanity.rs:49:1
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature = "a", since = "b")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0544]: multiple stability levels
2019-09-26 11:24:41 +00:00
--> $DIR/stability-attribute-sanity.rs:53:1
2018-08-08 12:28:26 +00:00
|
LL | #[unstable(feature = "b", issue = "none")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
error[E0544]: multiple stability levels
2019-09-26 11:24:41 +00:00
--> $DIR/stability-attribute-sanity.rs:57:1
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | #[stable(feature = "a", since = "b")]
2018-08-08 12:28:26 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0544]: multiple stability levels
--> $DIR/stability-attribute-sanity.rs:64:1
2018-08-08 12:28:26 +00:00
|
LL | #[rustc_const_unstable(feature = "d", issue = "none")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
error: invalid stability version found
--> $DIR/stability-attribute-sanity.rs:60:1
2018-08-08 12:28:26 +00:00
|
LL | #[stable(feature = "a", since = "b")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid stability version
...
2019-03-09 12:03:44 +00:00
LL | pub const fn multiple4() { }
| ---------------------------- the stability attribute annotates this item
2018-08-08 12:28:26 +00:00
error: invalid deprecation version found
--> $DIR/stability-attribute-sanity.rs:67:1
|
LL | #[stable(feature = "a", since = "1.0.0")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ invalid deprecation version
2022-01-19 15:24:49 +00:00
...
LL | fn invalid_deprecation_version() {}
| ----------------------------------- the stability attribute annotates this item
2022-03-05 02:59:18 +00:00
error[E0549]: deprecated attribute must be paired with either stable or unstable attribute
2022-01-19 15:24:49 +00:00
--> $DIR/stability-attribute-sanity.rs:72:1
2018-08-08 12:28:26 +00:00
|
2022-03-05 02:59:18 +00:00
LL | #[deprecated(since = "a", note = "text")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-08-08 12:28:26 +00:00
2022-01-19 15:24:49 +00:00
error[E0711]: feature `a` is declared stable since 1.0.0, but was previously declared stable since b
--> $DIR/stability-attribute-sanity.rs:67:1
|
LL | #[stable(feature = "a", since = "1.0.0")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 20 previous errors
2018-08-08 12:28:26 +00:00
2023-01-09 02:44:33 +00:00
Some errors have detailed explanations: E0539, E0541, E0542, E0543, E0544, E0546, E0547, E0549, E0711.
2020-05-02 18:14:08 +00:00
For more information about an error, try `rustc --explain E0539`.