rust/tests/ui/deprecation/deprecation-sanity.stderr

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

75 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-04-12 08:43:42 +08:00
error: multiple `deprecated` attributes
--> $DIR/deprecation-sanity.rs:27:1
|
LL | #[deprecated(since = "a", note = "b")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
|
note: attribute also specified here
--> $DIR/deprecation-sanity.rs:26:1
|
LL | #[deprecated(since = "a", note = "b")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2018-07-01 01:02:58 +08:00
error[E0541]: unknown meta item 'reason'
2018-12-25 23:56:47 +08:00
--> $DIR/deprecation-sanity.rs:4:43
2018-07-01 01:02:58 +08:00
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(since = "a", note = "a", reason)]
2018-07-01 03:33:59 +08:00
| ^^^^^^ expected one of `since`, `note`
2018-07-01 01:02:58 +08:00
error[E0539]: incorrect meta item
2018-12-25 23:56:47 +08:00
--> $DIR/deprecation-sanity.rs:7:31
2018-07-01 01:02:58 +08:00
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(since = "a", note)]
2018-07-01 01:02:58 +08:00
| ^^^^
error[E0539]: incorrect meta item
2018-12-25 23:56:47 +08:00
--> $DIR/deprecation-sanity.rs:10:18
2018-07-01 01:02:58 +08:00
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(since, note = "a")]
2018-07-01 01:02:58 +08:00
| ^^^^^
error[E0539]: incorrect meta item
2018-12-25 23:56:47 +08:00
--> $DIR/deprecation-sanity.rs:13:31
2018-07-01 01:02:58 +08:00
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(since = "a", note(b))]
2018-07-01 01:02:58 +08:00
| ^^^^^^^
error[E0539]: incorrect meta item
2018-12-25 23:56:47 +08:00
--> $DIR/deprecation-sanity.rs:16:18
2018-07-01 01:02:58 +08:00
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(since(b), note = "a")]
2018-07-01 01:02:58 +08:00
| ^^^^^^^^
error[E0565]: literal in `deprecated` value must be a string
--> $DIR/deprecation-sanity.rs:19:25
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(note = b"test")]
2022-08-27 01:23:21 +08:00
| -^^^^^^
| |
| help: consider removing the prefix
error[E0565]: item in `deprecated` must be a key/value pair
--> $DIR/deprecation-sanity.rs:22:18
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated("test")]
| ^^^^^^
2018-07-01 01:02:58 +08:00
error[E0538]: multiple 'since' items
--> $DIR/deprecation-sanity.rs:30:27
2018-07-01 01:02:58 +08:00
|
2019-03-09 20:03:44 +08:00
LL | #[deprecated(since = "a", since = "b", note = "c")]
2018-07-01 01:02:58 +08:00
| ^^^^^^^^^^^
error: this `#[deprecated]` annotation has no effect
--> $DIR/deprecation-sanity.rs:35:1
|
LL | #[deprecated = "hello"]
| ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
|
= note: `#[deny(useless_deprecated)]` on by default
error: aborting due to 10 previous errors
2018-07-01 01:02:58 +08:00
Some errors have detailed explanations: E0538, E0539, E0541, E0565.
2018-07-01 01:02:58 +08:00
For more information about an error, try `rustc --explain E0538`.