mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 06:16:26 +00:00
The `macro` directory contains most of the macro tests, but not all of them; move the remainder into `macro`.
49 lines
956 B
Plaintext
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
|
|
|