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
|
|
|
| ^^^^^^^^
|
|
|
|
|
2019-02-04 11:41:01 -06: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
|
2019-02-04 11:41:01 -06:00
|
|
|
|
|
|
|
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")]
|
2019-02-04 11:41:01 -06:00
|
|
|
| ^^^^^^
|
|
|
|
|
2018-06-30 12:02:58 -05:00
|
|
|
error[E0538]: multiple 'since' items
|
2019-02-04 11:41:01 -06:00
|
|
|
--> $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
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
2020-11-02 06:17:14 -06:00
|
|
|
error: this `#[deprecated]` annotation has no effect
|
2020-11-01 06:09:03 -06:00
|
|
|
--> $DIR/deprecation-sanity.rs:35:1
|
|
|
|
|
|
|
|
|
LL | #[deprecated = "hello"]
|
2020-11-02 06:17:14 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
|
2020-11-01 06:09:03 -06:00
|
|
|
|
|
|
|
|
= 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`.
|