summaryrefslogtreecommitdiffstats
path: root/tests/ui/deprecation/deprecation-sanity.stderr
blob: 383212ad9b4b8a3b909af0f0a0be65e6d676e818 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0541]: unknown meta item 'reason'
  --> $DIR/deprecation-sanity.rs:4:43
   |
LL |     #[deprecated(since = "a", note = "a", reason)]
   |                                           ^^^^^^ expected one of `since`, `note`

error[E0539]: incorrect meta item
  --> $DIR/deprecation-sanity.rs:7:31
   |
LL |     #[deprecated(since = "a", note)]
   |                               ^^^^

error[E0539]: incorrect meta item
  --> $DIR/deprecation-sanity.rs:10:18
   |
LL |     #[deprecated(since, note = "a")]
   |                  ^^^^^

error[E0539]: incorrect meta item
  --> $DIR/deprecation-sanity.rs:13:31
   |
LL |     #[deprecated(since = "a", note(b))]
   |                               ^^^^^^^

error[E0539]: incorrect meta item
  --> $DIR/deprecation-sanity.rs:16:18
   |
LL |     #[deprecated(since(b), note = "a")]
   |                  ^^^^^^^^

error[E0565]: literal in `deprecated` value must be a string
  --> $DIR/deprecation-sanity.rs:19:25
   |
LL |     #[deprecated(note = b"test")]
   |                         -^^^^^^
   |                         |
   |                         help: consider removing the prefix

error[E0565]: item in `deprecated` must be a key/value pair
  --> $DIR/deprecation-sanity.rs:22:18
   |
LL |     #[deprecated("test")]
   |                  ^^^^^^

error[E0538]: multiple 'since' items
  --> $DIR/deprecation-sanity.rs:30:27
   |
LL | #[deprecated(since = "a", since = "b", note = "c")]
   |                           ^^^^^^^^^^^

error: this `#[deprecated]` annotation has no effect
  --> $DIR/deprecation-sanity.rs:35:1
   |
LL | #[deprecated = "hello"]
   | ^^^^^^^^^^^^^^^^^^^^^^^ help: remove the unnecessary deprecation attribute
   |
   = note: `#[deny(useless_deprecated)]` on by default

error: aborting due to 10 previous errors

Some errors have detailed explanations: E0538, E0539, E0541, E0565.
For more information about an error, try `rustc --explain E0538`.