in declarative macros, "literal" matching arm can throw compiler error rather than matching or failing to match #106504
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
(I'm not confident enough to call this a bug but I think it qualifies as unexpected behavior)
I tried this code:
I expected that this code would see no literals in the passed expression, and then fall through to the next branch, outputing:
(note that it does this for
show_me!(+x)
)Instead, the compiler fails with:
rustc --version --verbose
The behavior is the same in nightly build:
rustc --version --verbose
And beta:
rustc --version --verbose
The text was updated successfully, but these errors were encountered: