fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
975 B45 linesraw
1error: 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   |
4LL | macro_rules! foo()
5   |                 ^^
6help: change the delimiters to curly braces
7   |
8LL | macro_rules! foo {}
9   |                  ^^
10help: add a semicolon
11   |
12LL | macro_rules! foo();
13   |                   ^
14
15error: macros that expand to items must be delimited with braces or followed by a semicolon
16  --> $DIR/macros-no-semicolon-items.rs:8:5
17   |
18LL |   bar!(
19   |  _____^
20LL | |     blah
21LL | |     blah
22LL | |     blah
23LL | | )
24   | |_^
25help: change the delimiters to curly braces
26   |
27LL | bar! {
28LL |     blah
29LL |     blah
30LL |     blah
31LL | }
32   |
33help: add a semicolon
34   |
35LL | );
36   |  ^
37
38error: unexpected end of macro invocation
39  --> $DIR/macros-no-semicolon-items.rs:1:1
40   |
41LL | macro_rules! foo()
42   | ^^^^^^^^^^^^^^^^^^ missing tokens in macro arguments
43
44error: aborting due to 3 previous errors
45