]> git.proxmox.com Git - rustc.git/blob - src/test/ui/deprecation/deprecation-sanity.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / deprecation / deprecation-sanity.stderr
1 error: multiple `deprecated` attributes
2 --> $DIR/deprecation-sanity.rs:27:1
3 |
4 LL | #[deprecated(since = "a", note = "b")]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
6 |
7 note: attribute also specified here
8 --> $DIR/deprecation-sanity.rs:26:1
9 |
10 LL | #[deprecated(since = "a", note = "b")]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error[E0541]: unknown meta item 'reason'
14 --> $DIR/deprecation-sanity.rs:4:43
15 |
16 LL | #[deprecated(since = "a", note = "a", reason)]
17 | ^^^^^^ expected one of `since`, `note`
18
19 error[E0551]: incorrect meta item
20 --> $DIR/deprecation-sanity.rs:7:31
21 |
22 LL | #[deprecated(since = "a", note)]
23 | ^^^^
24
25 error[E0551]: incorrect meta item
26 --> $DIR/deprecation-sanity.rs:10:18
27 |
28 LL | #[deprecated(since, note = "a")]
29 | ^^^^^
30
31 error[E0551]: incorrect meta item
32 --> $DIR/deprecation-sanity.rs:13:31
33 |
34 LL | #[deprecated(since = "a", note(b))]
35 | ^^^^^^^
36
37 error[E0551]: incorrect meta item
38 --> $DIR/deprecation-sanity.rs:16:18
39 |
40 LL | #[deprecated(since(b), note = "a")]
41 | ^^^^^^^^
42
43 error[E0565]: literal in `deprecated` value must be a string
44 --> $DIR/deprecation-sanity.rs:19:25
45 |
46 LL | #[deprecated(note = b"test")]
47 | ^^^^^^^ help: consider removing the prefix: `"test"`
48
49 error[E0565]: item in `deprecated` must be a key/value pair
50 --> $DIR/deprecation-sanity.rs:22:18
51 |
52 LL | #[deprecated("test")]
53 | ^^^^^^
54
55 error[E0538]: multiple 'since' items
56 --> $DIR/deprecation-sanity.rs:30:27
57 |
58 LL | #[deprecated(since = "a", since = "b", note = "c")]
59 | ^^^^^^^^^^^
60
61 error: this `#[deprecated]` annotation has no effect
62 --> $DIR/deprecation-sanity.rs:35:1
63 |
64 LL | #[deprecated = "hello"]
65 | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
66 |
67 = note: `#[deny(useless_deprecated)]` on by default
68
69 error: aborting due to 10 previous errors
70
71 Some errors have detailed explanations: E0538, E0541, E0551, E0565.
72 For more information about an error, try `rustc --explain E0538`.