Rustc (nightly) panic!s on macro definition #39388
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried the following code. Just the macro definition already causes rustc to panic.
I expected this code to generate a macro that would expand in the following way:edit: No, the macro is obviously wrong. I'd expect the compiler to give an error message for
($($b:tt))*
, since the*
is in the wrong place.But what I got was:
The text was updated successfully, but these errors were encountered: