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