fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
2.2 KiB82 linesraw
1error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
2  --> $DIR/main.rs:10:20
3   |
4LL | / macro_rules! pong {
5LL | |     () => { syntax error };
6   | |                    ^^^^^ expected one of 8 possible tokens
7LL | | }
8   | |_- in this expansion of `pong!`
9...
10LL |       pong!();
11   |       -------- in this macro invocation
12
13error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
14  --> $DIR/main.rs:10:20
15   |
16LL | /  macro_rules! pong {
17LL | |      () => { syntax error };
18   | |                     ^^^^^ expected one of 8 possible tokens
19LL | |  }
20   | |__- in this expansion of `pong!`
21...
22LL |        ping!();
23   |        -------- in this macro invocation
24   | 
25  ::: $DIR/auxiliary/ping.rs:5:1
26   |
27LL |  / macro_rules! ping {
28LL |  |     () => {
29LL |  |         pong!();
30   |  |         -------- in this macro invocation
31LL |  |     }
32LL |  | }
33   |  |_- in this expansion of `ping!`
34
35error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `error`
36  --> $DIR/main.rs:10:20
37   |
38LL | /  macro_rules! pong {
39LL | |      () => { syntax error };
40   | |                     ^^^^^ expected one of 8 possible tokens
41LL | |  }
42   | |__- in this expansion of `pong!` (#5)
43...
44LL |        deep!();
45   |        -------- in this macro invocation (#1)
46   | 
47  ::: $DIR/auxiliary/ping.rs:5:1
48   |
49LL |  / macro_rules! ping {
50LL |  |     () => {
51LL |  |         pong!();
52   |  |         -------- in this macro invocation (#5)
53LL |  |     }
54LL |  | }
55   |  |_- in this expansion of `ping!` (#4)
56...
57LL | /  macro_rules! deep {
58LL | |      () => {
59LL | |          foo!();
60   | |          ------- in this macro invocation (#2)
61LL | |      }
62LL | |  }
63   | |__- in this expansion of `deep!` (#1)
64...
65LL | /  macro_rules! foo {
66LL | |      () => {
67LL | |          bar!();
68   | |          ------- in this macro invocation (#3)
69LL | |      }
70LL | |  }
71   | |__- in this expansion of `foo!` (#2)
72...
73LL | /  macro_rules! bar {
74LL | |      () => {
75LL | |          ping!();
76   | |          -------- in this macro invocation (#4)
77LL | |      }
78LL | |  }
79   | |__- in this expansion of `bar!` (#3)
80
81error: aborting due to 3 previous errors
82