]> git.proxmox.com Git - rustc.git/blame - src/test/ui/macros/trace_faulty_macros.stderr
New upstream version 1.32.0~beta.2+dfsg1
[rustc.git] / src / test / ui / macros / trace_faulty_macros.stderr
CommitLineData
ea8adc8c
XL
1error: no rules expected the token `bcd`
2 --> $DIR/trace_faulty_macros.rs:17:26
3 |
a1dfa0c6
XL
4LL | macro_rules! my_faulty_macro {
5 | ---------------------------- when calling this macro
6LL | () => {
0531ce1d 7LL | my_faulty_macro!(bcd); //~ ERROR no rules
a1dfa0c6 8 | ^^^ no rules expected this token in macro call
ea8adc8c 9...
0531ce1d 10LL | my_faulty_macro!();
ea8adc8c
XL
11 | ------------------- in this macro invocation
12
13note: trace_macro
14 --> $DIR/trace_faulty_macros.rs:43:5
15 |
0531ce1d 16LL | 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
23error: recursion limit reached while expanding the macro `my_recursive_macro`
24 --> $DIR/trace_faulty_macros.rs:32:9
25 |
0531ce1d 26LL | my_recursive_macro!(); //~ ERROR recursion limit
ea8adc8c
XL
27 | ^^^^^^^^^^^^^^^^^^^^^^
28...
0531ce1d 29LL | my_recursive_macro!();
ea8adc8c
XL
30 | ---------------------- in this macro invocation
31 |
32 = help: consider adding a `#![recursion_limit="8"]` attribute to your crate
33
34note: trace_macro
35 --> $DIR/trace_faulty_macros.rs:44:5
36 |
0531ce1d 37LL | 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
51error: aborting due to 2 previous errors
52