@@ -13,7 +13,7 @@ LL | my_faulty_macro!();
1313 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1414
1515note: trace_macro
16- --> $DIR/trace_faulty_macros.rs:33 :5
16+ --> $DIR/trace_faulty_macros.rs:31 :5
1717 |
1818LL | my_faulty_macro!();
1919 | ^^^^^^^^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL | my_recursive_macro!();
3535 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3636
3737note: trace_macro
38- --> $DIR/trace_faulty_macros.rs:34 :5
38+ --> $DIR/trace_faulty_macros.rs:32 :5
3939 |
4040LL | my_recursive_macro!();
4141 | ^^^^^^^^^^^^^^^^^^^^^^
@@ -60,5 +60,22 @@ LL | let a = pat_macro!();
6060 |
6161 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6262
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
6481
0 commit comments