@@ -13,7 +13,7 @@ LL | my_faulty_macro!();
13
13
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
14
14
15
15
note: trace_macro
16
- --> $DIR/trace_faulty_macros.rs:33 :5
16
+ --> $DIR/trace_faulty_macros.rs:31 :5
17
17
|
18
18
LL | my_faulty_macro!();
19
19
| ^^^^^^^^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL | my_recursive_macro!();
35
35
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
36
36
37
37
note: trace_macro
38
- --> $DIR/trace_faulty_macros.rs:34 :5
38
+ --> $DIR/trace_faulty_macros.rs:32 :5
39
39
|
40
40
LL | my_recursive_macro!();
41
41
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -60,5 +60,22 @@ LL | let a = pat_macro!();
60
60
|
61
61
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
62
62
63
- error: aborting due to 3 previous errors
63
+ error: `derive` may only be applied to structs, enums and unions
64
+ --> $DIR/trace_faulty_macros.rs:42:1
65
+ |
66
+ LL | #[derive(Debug)]
67
+ | ^^^^^^^^^^^^^^^^
68
+
69
+ note: trace_macro
70
+ --> $DIR/trace_faulty_macros.rs:36:13
71
+ |
72
+ LL | let a = pat_macro!();
73
+ | ^^^^^^^^^^^^
74
+ |
75
+ = note: expanding `pat_macro! { }`
76
+ = note: to `pat_macro ! (A { a : a, b : 0, c : _, .. }) ;`
77
+ = note: expanding `pat_macro! { A { a : a, b : 0, c : _, .. } }`
78
+ = note: to `A { a: a, b: 0, c: _, .. }`
79
+
80
+ error: aborting due to 4 previous errors
64
81
0 commit comments