11error: 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
33 |
44LL | #[stable(feature = 1 + 1, since = "?")]
55 | ^^^^^
@@ -10,7 +10,7 @@ LL | m!();
1010 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
1111
1212error: 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
1414 |
1515LL | #[stable(feature = not_a_literal!(), since = "?")]
1616 | ^^^^^^^^^^^^^^^^
@@ -20,8 +20,19 @@ LL | m!();
2020 |
2121 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
2222
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+
2334error: struct has missing stability attribute
24- --> $DIR/eager-expansion-fail.rs:14 :9
35+ --> $DIR/eager-expansion-fail.rs:20 :9
2536 |
2637LL | pub struct Math;
2738 | ^^^^^^^^^^^^^^^^
@@ -32,7 +43,7 @@ LL | m!();
3243 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
3344
3445error: struct has missing stability attribute
35- --> $DIR/eager-expansion-fail.rs:17 :9
46+ --> $DIR/eager-expansion-fail.rs:23 :9
3647 |
3748LL | pub struct NotLiteral;
3849 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -42,5 +53,5 @@ LL | m!();
4253 |
4354 = note: this error originates in the macro `m` (in Nightly builds, run with -Z macro-backtrace for more info)
4455
45- error: aborting due to 4 previous errors
56+ error: aborting due to 5 previous errors
4657
0 commit comments