]>
Commit | Line | Data |
---|---|---|
532ac7d7 | 1 | error: macros that expand to items must be delimited with braces or followed by a semicolon |
0731742a | 2 | --> $DIR/macros-no-semicolon-items.rs:1:17 |
0bf4aa26 | 3 | | |
532ac7d7 | 4 | LL | macro_rules! foo() |
0bf4aa26 | 5 | | ^^ |
e74abb32 | 6 | | |
532ac7d7 XL |
7 | help: change the delimiters to curly braces |
8 | | | |
60c5eb7d | 9 | LL | macro_rules! foo{} |
94222f64 | 10 | | ~~ |
532ac7d7 XL |
11 | help: add a semicolon |
12 | | | |
13 | LL | macro_rules! foo(); | |
94222f64 | 14 | | + |
532ac7d7 XL |
15 | |
16 | error: macros that expand to items must be delimited with braces or followed by a semicolon | |
17 | --> $DIR/macros-no-semicolon-items.rs:8:5 | |
18 | | | |
19 | LL | bar!( | |
20 | | _____^ | |
21 | LL | | blah | |
22 | LL | | blah | |
23 | LL | | blah | |
24 | LL | | ) | |
25 | | |_^ | |
e74abb32 | 26 | | |
532ac7d7 XL |
27 | help: change the delimiters to curly braces |
28 | | | |
94222f64 | 29 | LL ~ bar!{ |
532ac7d7 XL |
30 | LL | blah |
31 | LL | blah | |
32 | LL | blah | |
94222f64 | 33 | LL + } |
532ac7d7 XL |
34 | | |
35 | help: add a semicolon | |
36 | | | |
37 | LL | ); | |
94222f64 | 38 | | + |
532ac7d7 XL |
39 | |
40 | error: unexpected end of macro invocation | |
41 | --> $DIR/macros-no-semicolon-items.rs:1:1 | |
42 | | | |
43 | LL | macro_rules! foo() | |
44 | | ^^^^^^^^^^^^^^^^^^ missing tokens in macro arguments | |
0bf4aa26 | 45 | |
532ac7d7 | 46 | error: aborting due to 3 previous errors |
0bf4aa26 | 47 |