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