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