]>
Commit | Line | Data |
---|---|---|
ea8adc8c XL |
1 | error: no rules expected the token `bcd` |
2 | --> $DIR/trace_faulty_macros.rs:17:26 | |
3 | | | |
a1dfa0c6 XL |
4 | LL | macro_rules! my_faulty_macro { |
5 | | ---------------------------- when calling this macro | |
6 | LL | () => { | |
0531ce1d | 7 | LL | my_faulty_macro!(bcd); //~ ERROR no rules |
a1dfa0c6 | 8 | | ^^^ no rules expected this token in macro call |
ea8adc8c | 9 | ... |
0531ce1d | 10 | LL | my_faulty_macro!(); |
ea8adc8c XL |
11 | | ------------------- in this macro invocation |
12 | ||
13 | note: trace_macro | |
14 | --> $DIR/trace_faulty_macros.rs:43:5 | |
15 | | | |
0531ce1d | 16 | LL | my_faulty_macro!(); |
ea8adc8c XL |
17 | | ^^^^^^^^^^^^^^^^^^^ |
18 | | | |
19 | = note: expanding `my_faulty_macro! { }` | |
20 | = note: to `my_faulty_macro ! ( bcd ) ;` | |
21 | = note: expanding `my_faulty_macro! { bcd }` | |
22 | ||
23 | error: recursion limit reached while expanding the macro `my_recursive_macro` | |
24 | --> $DIR/trace_faulty_macros.rs:32:9 | |
25 | | | |
0531ce1d | 26 | LL | my_recursive_macro!(); //~ ERROR recursion limit |
ea8adc8c XL |
27 | | ^^^^^^^^^^^^^^^^^^^^^^ |
28 | ... | |
0531ce1d | 29 | LL | my_recursive_macro!(); |
ea8adc8c XL |
30 | | ---------------------- in this macro invocation |
31 | | | |
32 | = help: consider adding a `#![recursion_limit="8"]` attribute to your crate | |
33 | ||
34 | note: trace_macro | |
35 | --> $DIR/trace_faulty_macros.rs:44:5 | |
36 | | | |
0531ce1d | 37 | LL | my_recursive_macro!(); |
ea8adc8c XL |
38 | | ^^^^^^^^^^^^^^^^^^^^^^ |
39 | | | |
40 | = note: expanding `my_recursive_macro! { }` | |
41 | = note: to `my_recursive_macro ! ( ) ;` | |
42 | = note: expanding `my_recursive_macro! { }` | |
43 | = note: to `my_recursive_macro ! ( ) ;` | |
44 | = note: expanding `my_recursive_macro! { }` | |
45 | = note: to `my_recursive_macro ! ( ) ;` | |
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 | ||
0531ce1d XL |
51 | error: aborting due to 2 previous errors |
52 |