2019-03-10 20:01:53 -05:00
|
|
|
error: macros that expand to items must be delimited with braces or followed by a semicolon
|
2019-01-06 09:33:05 -06:00
|
|
|
--> $DIR/macros-no-semicolon-items.rs:1:17
|
2018-10-20 15:36:17 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | macro_rules! foo()
|
2018-10-20 15:36:17 -05:00
|
|
|
| ^^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-03-10 20:01:53 -05:00
|
|
|
help: change the delimiters to curly braces
|
|
|
|
|
|
2019-11-10 01:38:09 -06:00
|
|
|
LL | macro_rules! foo{}
|
2021-06-21 21:07:19 -05:00
|
|
|
| ~~
|
2019-03-10 20:01:53 -05:00
|
|
|
help: add a semicolon
|
|
|
|
|
|
|
|
|
LL | macro_rules! foo();
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-03-10 20:01:53 -05:00
|
|
|
|
|
|
|
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 | | )
|
|
|
|
| |_^
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-03-10 20:01:53 -05:00
|
|
|
help: change the delimiters to curly braces
|
|
|
|
|
|
2021-06-21 21:07:19 -05:00
|
|
|
LL ~ bar!{
|
2019-03-10 20:01:53 -05:00
|
|
|
LL | blah
|
|
|
|
LL | blah
|
|
|
|
LL | blah
|
2021-06-21 21:07:19 -05:00
|
|
|
LL + }
|
2019-03-10 20:01:53 -05:00
|
|
|
|
|
|
|
|
help: add a semicolon
|
|
|
|
|
|
|
|
|
LL | );
|
2021-06-21 21:07:19 -05:00
|
|
|
| +
|
2019-03-10 20:01:53 -05:00
|
|
|
|
|
|
|
error: unexpected end of macro invocation
|
|
|
|
--> $DIR/macros-no-semicolon-items.rs:1:1
|
|
|
|
|
|
|
|
|
LL | macro_rules! foo()
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ missing tokens in macro arguments
|
2018-10-20 15:36:17 -05:00
|
|
|
|
2019-03-10 20:01:53 -05:00
|
|
|
error: aborting due to 3 previous errors
|
2018-10-20 15:36:17 -05:00
|
|
|
|