1
1
error: expression in the value of this attribute must be a literal or macro call
2
- --> $DIR/eager-expansion-fail.rs:13 :28
2
+ --> $DIR/eager-expansion-fail.rs:19 :28
3
3
|
4
4
LL | #[stable(feature = 1 + 1, since = "?")]
5
5
| ^^^^^
@@ -10,7 +10,7 @@ LL | m!();
10
10
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
11
11
12
12
error: expression in the value of this attribute must be a literal or macro call
13
- --> $DIR/eager-expansion-fail.rs:16 :28
13
+ --> $DIR/eager-expansion-fail.rs:22 :28
14
14
|
15
15
LL | #[stable(feature = not_a_literal!(), since = "?")]
16
16
| ^^^^^^^^^^^^^^^^
@@ -20,8 +20,19 @@ LL | m!();
20
20
|
21
21
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
22
22
23
+ error: expected unsuffixed literal or identifier, found `deprecation_msg`
24
+ --> $DIR/eager-expansion-fail.rs:26:31
25
+ |
26
+ LL | #[deprecated(reason = deprecation_msg!())]
27
+ | ^^^^^^^^^^^^^^^
28
+ ...
29
+ LL | m!();
30
+ | ---- in this macro invocation
31
+ |
32
+ = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
33
+
23
34
error: struct has missing stability attribute
24
- --> $DIR/eager-expansion-fail.rs:14 :9
35
+ --> $DIR/eager-expansion-fail.rs:20 :9
25
36
|
26
37
LL | pub struct Math;
27
38
| ^^^^^^^^^^^^^^^^
@@ -32,7 +43,7 @@ LL | m!();
32
43
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
33
44
34
45
error: struct has missing stability attribute
35
- --> $DIR/eager-expansion-fail.rs:17 :9
46
+ --> $DIR/eager-expansion-fail.rs:23 :9
36
47
|
37
48
LL | pub struct NotLiteral;
38
49
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -42,5 +53,5 @@ LL | m!();
42
53
|
43
54
= note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
44
55
45
- error: aborting due to 4 previous errors
56
+ error: aborting due to 5 previous errors
46
57
0 commit comments