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-11 19:43:42 -05: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-06-30 12:02:58 -05:00
error[E0541]: unknown meta item 'reason'
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:4:43
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", note = "a", reason)]
2018-06-30 14:33:59 -05:00
| ^^^^^^ expected one of `since`, `note`
2018-06-30 12:02:58 -05:00
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:7:31
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", note)]
2018-06-30 12:02:58 -05:00
| ^^^^
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:10:18
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since, note = "a")]
2018-06-30 12:02:58 -05:00
| ^^^^^
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:13:31
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", note(b))]
2018-06-30 12:02:58 -05:00
| ^^^^^^^
error[E0551]: incorrect meta item
2018-12-25 09:56:47 -06:00
--> $DIR/deprecation-sanity.rs:16:18
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since(b), note = "a")]
2018-06-30 12:02:58 -05:00
| ^^^^^^^^
error[E0565]: literal in `deprecated` value must be a string
--> $DIR/deprecation-sanity.rs:19:25
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(note = b"test")]
2022-08-26 12:23:21 -05: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 06:03:44 -06:00
LL | #[deprecated("test")]
| ^^^^^^
2018-06-30 12:02:58 -05:00
error[E0538]: multiple 'since' items
--> $DIR/deprecation-sanity.rs:30:27
2018-06-30 12:02:58 -05:00
|
2019-03-09 06:03:44 -06:00
LL | #[deprecated(since = "a", since = "b", note = "c")]
2018-06-30 12:02:58 -05: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-06-30 12:02:58 -05:00
2022-04-11 19:43:42 -05:00
Some errors have detailed explanations: E0538, E0541, E0551, E0565.
2018-06-30 12:02:58 -05:00
For more information about an error, try `rustc --explain E0538`.