Skip to content

Commit 3814eec

Browse files
dtolnaypetrochenkov
authored andcommitted
Add test for tuple indexed with float in macro input
1 parent 6dfa549 commit 3814eec

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Broken by https://github.com/rust-lang/rust/pull/70420.
2+
3+
macro_rules! m {
4+
(.$l:literal) => {};
5+
}
6+
7+
m!(.0.0); //~ ERROR no rules expected the token `.`
8+
9+
fn main() {}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
error: no rules expected the token `.`
2+
--> $DIR/indexing-in-macro.rs:7:6
3+
|
4+
LL | macro_rules! m {
5+
| -------------- when calling this macro
6+
...
7+
LL | m!(.0.0);
8+
| ^ no rules expected this token in macro call
9+
10+
error: aborting due to previous error
11+

0 commit comments

Comments
 (0)