Skip to content

Commit eaeda23

Browse files
committed
ensure previously rejected tokens now accepted in macros
1 parent 2c33df5 commit eaeda23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/ui/lexer/custom-suffixes-exponent-like.rs

+6
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@ const _C: f64 = 1e_______________0m;
77
const _D: f64 = 1e_______________m;
88
//~^ ERROR invalid suffix `e_______________m` for number literal
99

10+
// All the above patterns should not generate an error when used in a macro
11+
macro_rules! do_nothing {
12+
($($toks:tt)*) => {};
13+
}
14+
do_nothing!(1em 1e0m 1e_______________0m 1e_______________m);
15+
1016
fn main() {}

0 commit comments

Comments
 (0)