2017-09-02 10:21:13 -05:00
|
|
|
error: no rules expected the token `bcd`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trace_faulty_macros.rs:7:26
|
2017-09-02 10:21:13 -05:00
|
|
|
|
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | macro_rules! my_faulty_macro {
|
|
|
|
| ---------------------------- when calling this macro
|
|
|
|
LL | () => {
|
|
|
|
LL | my_faulty_macro!(bcd); //~ ERROR no rules
|
2018-11-04 16:01:38 -06:00
|
|
|
| ^^^ no rules expected this token in macro call
|
2017-09-02 10:21:13 -05:00
|
|
|
...
|
2018-10-24 13:34:23 -05:00
|
|
|
LL | my_faulty_macro!();
|
|
|
|
| ------------------- in this macro invocation
|
2017-09-02 10:21:13 -05:00
|
|
|
|
|
|
|
note: trace_macro
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trace_faulty_macros.rs:33:5
|
2017-09-02 10:21:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | my_faulty_macro!();
|
2017-09-02 10:21:13 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: expanding `my_faulty_macro! { }`
|
|
|
|
= note: to `my_faulty_macro ! ( bcd ) ;`
|
|
|
|
= note: expanding `my_faulty_macro! { bcd }`
|
|
|
|
|
|
|
|
error: recursion limit reached while expanding the macro `my_recursive_macro`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trace_faulty_macros.rs:22:9
|
2017-09-02 10:21:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | my_recursive_macro!(); //~ ERROR recursion limit
|
2017-09-02 10:21:13 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | my_recursive_macro!();
|
2017-09-02 10:21:13 -05:00
|
|
|
| ---------------------- in this macro invocation
|
|
|
|
|
|
|
|
|
= help: consider adding a `#![recursion_limit="8"]` attribute to your crate
|
|
|
|
|
|
|
|
note: trace_macro
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/trace_faulty_macros.rs:34:5
|
2017-09-02 10:21:13 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | my_recursive_macro!();
|
2017-09-02 10:21:13 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: expanding `my_recursive_macro! { }`
|
|
|
|
= note: to `my_recursive_macro ! ( ) ;`
|
|
|
|
= note: expanding `my_recursive_macro! { }`
|
|
|
|
= note: to `my_recursive_macro ! ( ) ;`
|
|
|
|
= note: expanding `my_recursive_macro! { }`
|
|
|
|
= note: to `my_recursive_macro ! ( ) ;`
|
|
|
|
= note: expanding `my_recursive_macro! { }`
|
|
|
|
= note: to `my_recursive_macro ! ( ) ;`
|
|
|
|
= note: expanding `my_recursive_macro! { }`
|
|
|
|
= note: to `my_recursive_macro ! ( ) ;`
|
|
|
|
|
2018-03-15 10:13:47 -05:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|