]> git.lizzy.rs Git - rust.git/blob - src/test/ui/macros/trace_faulty_macros.stderr
Auto merge of #61741 - Centril:rollup-fgro5kz, r=Centril
[rust.git] / src / test / ui / macros / trace_faulty_macros.stderr
1 error: no rules expected the token `bcd`
2   --> $DIR/trace_faulty_macros.rs:7:26
3    |
4 LL | macro_rules! my_faulty_macro {
5    | ---------------------------- when calling this macro
6 LL |     () => {
7 LL |         my_faulty_macro!(bcd);
8    |                          ^^^ no rules expected this token in macro call
9 ...
10 LL |     my_faulty_macro!();
11    |     ------------------- in this macro invocation
12
13 note: trace_macro
14   --> $DIR/trace_faulty_macros.rs:33:5
15    |
16 LL |     my_faulty_macro!();
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:22:9
25    |
26 LL |         my_recursive_macro!();
27    |         ^^^^^^^^^^^^^^^^^^^^^^
28 ...
29 LL |     my_recursive_macro!();
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:34:5
36    |
37 LL |     my_recursive_macro!();
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
51 error: aborting due to 2 previous errors
52