-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit f6e9fd0)
- Loading branch information
Showing
4 changed files
with
34 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,9 @@ | ||
macro_rules! x { | ||
($($c:tt)*) => { | ||
$($c)ö* {} //~ ERROR missing condition for `if` expression | ||
}; | ||
} | ||
|
||
fn main() { | ||
x!(if); | ||
} |
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,8 @@ | ||
error: missing condition for `if` expression | ||
--> $DIR/issue-68091-unicode-ident-after-if.rs:3:14 | ||
| | ||
LL | $($c)ö* {} | ||
| ^ expected if condition here | ||
|
||
error: aborting due to previous error | ||
|
9 changes: 9 additions & 0 deletions
9
src/test/ui/issues/issue-68092-unicode-ident-after-incomplete-expr.rs
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,9 @@ | ||
macro_rules! x { | ||
($($c:tt)*) => { | ||
$($c)ö* //~ ERROR macro expansion ends with an incomplete expression: expected expression | ||
}; | ||
} | ||
|
||
fn main() { | ||
x!(!); | ||
} |
8 changes: 8 additions & 0 deletions
8
src/test/ui/issues/issue-68092-unicode-ident-after-incomplete-expr.stderr
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,8 @@ | ||
error: macro expansion ends with an incomplete expression: expected expression | ||
--> $DIR/issue-68092-unicode-ident-after-incomplete-expr.rs:3:14 | ||
| | ||
LL | $($c)ö* | ||
| ^ expected expression | ||
|
||
error: aborting due to previous error | ||
|