|
| 1 | +error: no rules expected the token `bcd` |
| 2 | + --> $DIR/trace_faulty_macros.rs:17:26 |
| 3 | + | |
| 4 | +17 | my_faulty_macro!(bcd); |
| 5 | + | ^^^ |
| 6 | +... |
| 7 | +43 | my_faulty_macro!(); |
| 8 | + | ------------------- in this macro invocation |
| 9 | + |
| 10 | +note: trace_macro |
| 11 | + --> $DIR/trace_faulty_macros.rs:43:5 |
| 12 | + | |
| 13 | +43 | my_faulty_macro!(); |
| 14 | + | ^^^^^^^^^^^^^^^^^^^ |
| 15 | + | |
| 16 | + = note: expanding `my_faulty_macro! { }` |
| 17 | + = note: to `my_faulty_macro ! ( bcd ) ;` |
| 18 | + = note: expanding `my_faulty_macro! { bcd }` |
| 19 | + |
| 20 | +error: expected expression, found `_` |
| 21 | + --> $DIR/trace_faulty_macros.rs:26:27 |
| 22 | + | |
| 23 | +26 | a | b | 1 ... 3 | _ |
| 24 | + | ^ |
| 25 | +... |
| 26 | +44 | nested_pat_macro!(); |
| 27 | + | -------------------- in this macro invocation |
| 28 | + |
| 29 | +error: recursion limit reached while expanding the macro `my_recursive_macro` |
| 30 | + --> $DIR/trace_faulty_macros.rs:32:9 |
| 31 | + | |
| 32 | +32 | my_recursive_macro!(); |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | +... |
| 35 | +45 | my_recursive_macro!(); |
| 36 | + | ---------------------- in this macro invocation |
| 37 | + | |
| 38 | + = help: consider adding a `#![recursion_limit="8"]` attribute to your crate |
| 39 | + |
| 40 | +note: trace_macro |
| 41 | + --> $DIR/trace_faulty_macros.rs:45:5 |
| 42 | + | |
| 43 | +45 | my_recursive_macro!(); |
| 44 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 45 | + | |
| 46 | + = note: expanding `my_recursive_macro! { }` |
| 47 | + = note: to `my_recursive_macro ! ( ) ;` |
| 48 | + = note: expanding `my_recursive_macro! { }` |
| 49 | + = note: to `my_recursive_macro ! ( ) ;` |
| 50 | + = note: expanding `my_recursive_macro! { }` |
| 51 | + = note: to `my_recursive_macro ! ( ) ;` |
| 52 | + = note: expanding `my_recursive_macro! { }` |
| 53 | + = note: to `my_recursive_macro ! ( ) ;` |
| 54 | + = note: expanding `my_recursive_macro! { }` |
| 55 | + = note: to `my_recursive_macro ! ( ) ;` |
| 56 | + |
| 57 | +note: trace_macro |
| 58 | + --> $DIR/trace_faulty_macros.rs:43:5 |
| 59 | + | |
| 60 | +43 | my_faulty_macro!(); |
| 61 | + | ^^^^^^^^^^^^^^^^^^^ |
| 62 | + | |
| 63 | + = note: expanding `my_faulty_macro! { }` |
| 64 | + = note: to `my_faulty_macro ! ( bcd ) ;` |
| 65 | + = note: expanding `my_faulty_macro! { bcd }` |
| 66 | + |
| 67 | +note: trace_macro |
| 68 | + --> $DIR/trace_faulty_macros.rs:44:5 |
| 69 | + | |
| 70 | +44 | nested_pat_macro!(); |
| 71 | + | ^^^^^^^^^^^^^^^^^^^^ |
| 72 | + | |
| 73 | + = note: expanding `nested_pat_macro! { }` |
| 74 | + = note: to `nested_pat_macro ! ( inner ) ;` |
| 75 | + = note: expanding `nested_pat_macro! { inner }` |
| 76 | + = note: to `a | b | 1 ... 3 | _` |
| 77 | + |
0 commit comments