]> git.proxmox.com Git - rustc.git/blame - src/test/ui/parser/macros-no-semicolon-items.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / parser / macros-no-semicolon-items.stderr
CommitLineData
532ac7d7 1error: 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 4LL | macro_rules! foo()
0bf4aa26 5 | ^^
e74abb32 6 |
532ac7d7
XL
7help: change the delimiters to curly braces
8 |
60c5eb7d 9LL | macro_rules! foo{}
94222f64 10 | ~~
532ac7d7
XL
11help: add a semicolon
12 |
13LL | macro_rules! foo();
94222f64 14 | +
532ac7d7
XL
15
16error: 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 |
19LL | bar!(
20 | _____^
21LL | | blah
22LL | | blah
23LL | | blah
24LL | | )
25 | |_^
e74abb32 26 |
532ac7d7
XL
27help: change the delimiters to curly braces
28 |
94222f64 29LL ~ bar!{
532ac7d7
XL
30LL | blah
31LL | blah
32LL | blah
94222f64 33LL + }
532ac7d7
XL
34 |
35help: add a semicolon
36 |
37LL | );
94222f64 38 | +
532ac7d7
XL
39
40error: unexpected end of macro invocation
41 --> $DIR/macros-no-semicolon-items.rs:1:1
42 |
43LL | macro_rules! foo()
44 | ^^^^^^^^^^^^^^^^^^ missing tokens in macro arguments
0bf4aa26 45
532ac7d7 46error: aborting due to 3 previous errors
0bf4aa26 47