1 error[E0541]: unknown meta item 'reason'
2 --> $DIR/deprecation-sanity.rs:4:43
4 LL | #[deprecated(since = "a", note = "a", reason)]
5 | ^^^^^^ expected one of `since`, `note`
7 error[E0551]: incorrect meta item
8 --> $DIR/deprecation-sanity.rs:7:31
10 LL | #[deprecated(since = "a", note)]
13 error[E0551]: incorrect meta item
14 --> $DIR/deprecation-sanity.rs:10:18
16 LL | #[deprecated(since, note = "a")]
19 error[E0551]: incorrect meta item
20 --> $DIR/deprecation-sanity.rs:13:31
22 LL | #[deprecated(since = "a", note(b))]
25 error[E0551]: incorrect meta item
26 --> $DIR/deprecation-sanity.rs:16:18
28 LL | #[deprecated(since(b), note = "a")]
31 error[E0565]: literal in `deprecated` value must be a string
32 --> $DIR/deprecation-sanity.rs:19:25
34 LL | #[deprecated(note = b"test")]
35 | ^^^^^^^ help: consider removing the prefix: `"test"`
37 error[E0565]: item in `deprecated` must be a key/value pair
38 --> $DIR/deprecation-sanity.rs:22:18
40 LL | #[deprecated("test")]
43 error[E0550]: multiple deprecated attributes
44 --> $DIR/deprecation-sanity.rs:27:1
46 LL | #[deprecated(since = "a", note = "b")]
47 | -------------------------------------- first deprecation attribute
48 LL | #[deprecated(since = "a", note = "b")]
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ repeated deprecation attribute
51 error[E0538]: multiple 'since' items
52 --> $DIR/deprecation-sanity.rs:30:27
54 LL | #[deprecated(since = "a", since = "b", note = "c")]
57 error: this `#[deprecated]` annotation has no effect
58 --> $DIR/deprecation-sanity.rs:35:1
60 LL | #[deprecated = "hello"]
61 | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
63 = note: `#[deny(useless_deprecated)]` on by default
65 error: aborting due to 10 previous errors
67 Some errors have detailed explanations: E0538, E0541, E0550, E0551, E0565.
68 For more information about an error, try `rustc --explain E0538`.