diff options
Diffstat (limited to 'tests/ui/tuple/indexing-in-macro.rs')
-rw-r--r-- | tests/ui/tuple/indexing-in-macro.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/tuple/indexing-in-macro.rs b/tests/ui/tuple/indexing-in-macro.rs new file mode 100644 index 000000000..bef4a69ab --- /dev/null +++ b/tests/ui/tuple/indexing-in-macro.rs @@ -0,0 +1,9 @@ +// check-pass + +macro_rules! m { + (.$l:literal) => {}; +} + +m!(.0.0); // OK, `0.0` after a dot is still a float token. + +fn main() {} |