-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tip for define macro name after
macro_rules!
- Loading branch information
Showing
5 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
macro_rules! {} | ||
//~^ ERROR cannot find macro `macro_rules` in this scope | ||
//~| NOTE maybe you have forgotten to define a name for this `macro_rules!` | ||
|
||
macro_rules!{} | ||
//~^ ERROR cannot find macro `macro_rules` in this scope | ||
//~| NOTE maybe you have forgotten to define a name for this `macro_rules!` | ||
|
||
macro_rules! {} | ||
//~^ ERROR cannot find macro `macro_rules` in this scope | ||
//~| NOTE maybe you have forgotten to define a name for this `macro_rules!` | ||
|
||
macro_rules! { | ||
|
||
} | ||
//~^^^ ERROR cannot find macro `macro_rules` in this scope | ||
//~| NOTE maybe you have forgotten to define a name for this `macro_rules!` | ||
|
||
macro_rules![]; | ||
//~^ ERROR cannot find macro `macro_rules` in this scope | ||
macro_rules!(); | ||
//~^ ERROR cannot find macro `macro_rules` in this scope | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
error: cannot find macro `macro_rules` in this scope | ||
--> $DIR/issue-118295.rs:21:1 | ||
| | ||
LL | macro_rules!(); | ||
| ^^^^^^^^^^^ | ||
|
||
error: cannot find macro `macro_rules` in this scope | ||
--> $DIR/issue-118295.rs:19:1 | ||
| | ||
LL | macro_rules![]; | ||
| ^^^^^^^^^^^ | ||
|
||
error: cannot find macro `macro_rules` in this scope | ||
--> $DIR/issue-118295.rs:13:1 | ||
| | ||
LL | macro_rules! { | ||
| ^^^^^^^^^^^ | ||
| | ||
note: maybe you have forgotten to define a name for this `macro_rules!` | ||
--> $DIR/issue-118295.rs:13:1 | ||
| | ||
LL | macro_rules! { | ||
| ^^^^^^^^^^^^ | ||
|
||
error: cannot find macro `macro_rules` in this scope | ||
--> $DIR/issue-118295.rs:9:1 | ||
| | ||
LL | macro_rules! {} | ||
| ^^^^^^^^^^^ | ||
| | ||
note: maybe you have forgotten to define a name for this `macro_rules!` | ||
--> $DIR/issue-118295.rs:9:1 | ||
| | ||
LL | macro_rules! {} | ||
| ^^^^^^^^^^^^ | ||
|
||
error: cannot find macro `macro_rules` in this scope | ||
--> $DIR/issue-118295.rs:5:1 | ||
| | ||
LL | macro_rules!{} | ||
| ^^^^^^^^^^^ | ||
| | ||
note: maybe you have forgotten to define a name for this `macro_rules!` | ||
--> $DIR/issue-118295.rs:5:1 | ||
| | ||
LL | macro_rules!{} | ||
| ^^^^^^^^^^^^ | ||
|
||
error: cannot find macro `macro_rules` in this scope | ||
--> $DIR/issue-118295.rs:1:1 | ||
| | ||
LL | macro_rules! {} | ||
| ^^^^^^^^^^^ | ||
| | ||
note: maybe you have forgotten to define a name for this `macro_rules!` | ||
--> $DIR/issue-118295.rs:1:1 | ||
| | ||
LL | macro_rules! {} | ||
| ^^^^^^^^^^^^ | ||
|
||
error: aborting due to 6 previous errors | ||
|