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
1
error[E0541]: unknown meta item 'reason'
14
2
--> $DIR/deprecation-sanity.rs:4:43
15
3
|
16
4
LL | #[deprecated(since = "a", note = "a", reason)]
17
5
| ^^^^^^ expected one of `since`, `note`
18
6
19
- error[E0539]: incorrect meta item
7
+ error[E0539]: expected a quoted string literal
20
8
--> $DIR/deprecation-sanity.rs:7:31
21
9
|
22
10
LL | #[deprecated(since = "a", note)]
23
11
| ^^^^
24
12
25
- error[E0539]: incorrect meta item
13
+ error[E0539]: expected a quoted string literal
26
14
--> $DIR/deprecation-sanity.rs:10:18
27
15
|
28
16
LL | #[deprecated(since, note = "a")]
29
17
| ^^^^^
30
18
31
- error[E0539]: incorrect meta item
19
+ error[E0539]: expected a quoted string literal
32
20
--> $DIR/deprecation-sanity.rs:13:31
33
21
|
34
22
LL | #[deprecated(since = "a", note(b))]
35
23
| ^^^^^^^
36
24
37
- error[E0539]: incorrect meta item
25
+ error[E0539]: expected a quoted string literal
38
26
--> $DIR/deprecation-sanity.rs:16:18
39
27
|
40
28
LL | #[deprecated(since(b), note = "a")]
@@ -54,6 +42,18 @@ error[E0565]: item in `deprecated` must be a key/value pair
54
42
LL | #[deprecated("test")]
55
43
| ^^^^^^
56
44
45
+ error: multiple `deprecated` attributes
46
+ --> $DIR/deprecation-sanity.rs:27:1
47
+ |
48
+ LL | #[deprecated(since = "a", note = "b")]
49
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove this attribute
50
+ |
51
+ note: attribute also specified here
52
+ --> $DIR/deprecation-sanity.rs:26:1
53
+ |
54
+ LL | #[deprecated(since = "a", note = "b")]
55
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56
+
57
57
error[E0538]: multiple 'since' items
58
58
--> $DIR/deprecation-sanity.rs:30:27
59
59
|
0 commit comments