Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for tuple indexed with float in macro input
- Loading branch information
1 parent
6dfa549
commit 3814eec
Showing
2 changed files
with
20 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 @@ | ||
// Broken by https://github.com/rust-lang/rust/pull/70420. | ||
|
||
macro_rules! m { | ||
(.$l:literal) => {}; | ||
} | ||
|
||
m!(.0.0); //~ ERROR no rules expected the token `.` | ||
|
||
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,11 @@ | ||
error: no rules expected the token `.` | ||
--> $DIR/indexing-in-macro.rs:7:6 | ||
| | ||
LL | macro_rules! m { | ||
| -------------- when calling this macro | ||
... | ||
LL | m!(.0.0); | ||
| ^ no rules expected this token in macro call | ||
|
||
error: aborting due to previous error | ||
|