rust/tests/ui/parser/macro/macros-no-semicolon-items.stderr
Josh Triplett 6d64306df1 Move macro tests in parser into macro directory
The `macro` directory contains most of the macro tests, but not all of
them; move the remainder into `macro`.
2025-07-05 16:52:59 -07:00

49 lines
956 B
Plaintext

error: macros that expand to items must be delimited with braces or followed by a semicolon
--> $DIR/macros-no-semicolon-items.rs:1:17
|
LL | macro_rules! foo()
| ^^
|
help: change the delimiters to curly braces
|
LL - macro_rules! foo()
LL + macro_rules! foo{}
|
help: add a semicolon
|
LL | macro_rules! foo();
| +
error: macros that expand to items must be delimited with braces or followed by a semicolon
--> $DIR/macros-no-semicolon-items.rs:8:5
|
LL | bar!(
| _____^
LL | | blah
LL | | blah
LL | | blah
LL | | )
| |_^
|
help: change the delimiters to curly braces
|
LL ~ bar!{
LL | blah
LL | blah
LL | blah
LL + }
|
help: add a semicolon
|
LL | );
| +
error: macros must contain at least one rule
--> $DIR/macros-no-semicolon-items.rs:1:1
|
LL | macro_rules! foo()
| ^^^^^^^^^^^^^^^^^^
error: aborting due to 3 previous errors