]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/macros-no-semicolon-items.stderr
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / parser / macros-no-semicolon-items.stderr
1 error: macros that expand to items must be delimited with braces or followed by a semicolon
2   --> $DIR/macros-no-semicolon-items.rs:1:17
3    |
4 LL | macro_rules! foo()
5    |                 ^^
6    |
7 help: change the delimiters to curly braces
8    |
9 LL | macro_rules! foo{}
10    |                 ~~
11 help: add a semicolon
12    |
13 LL | macro_rules! foo();
14    |                   +
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    | |_^
26    |
27 help: change the delimiters to curly braces
28    |
29 LL ~ bar!{
30 LL |     blah
31 LL |     blah
32 LL |     blah
33 LL + }
34    |
35 help: add a semicolon
36    |
37 LL | );
38    |  +
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
45
46 error: aborting due to 3 previous errors
47