-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
fn main() {} | ||
|
||
fn foo(u: u8) { if u8 macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 { | ||
//~^ ERROR expected `{`, found `macro_rules` | ||
//~ ERROR this file contains an un-closed delimiter |
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,30 @@ | ||
error: this file contains an un-closed delimiter | ||
--> $DIR/issue-62554.rs:5:53 | ||
| | ||
LL | fn foo(u: u8) { if u8 macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 { | ||
| - - - - - un-closed delimiter | ||
| | | | | | ||
| | | | un-closed delimiter | ||
| | | un-closed delimiter | ||
| un-closed delimiter un-closed delimiter | ||
LL | | ||
LL | | ||
| ^ | ||
|
||
error: expected `{`, found `macro_rules` | ||
--> $DIR/issue-62554.rs:3:23 | ||
| | ||
LL | fn foo(u: u8) { if u8 macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 { | ||
| -- ^^^^^^^^^^^ expected `{` | ||
| | | ||
| this `if` statement has a condition, but no block | ||
help: try placing this code inside a block | ||
| | ||
LL | fn foo(u: u8) { if u8 { macro_rules! u8 { (u6) => { fn uuuuuuuuuuu() { use s loo mod u8 { | ||
LL | | ||
LL | | ||
LL | } | ||
| | ||
|
||
error: aborting due to 2 previous errors | ||
|