Derives can conflict with constants #49679
Labels
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(playpen)
With
__cmp
uncommented we get errors like:With
__self_0
uncommented we get errors like:This is basically because they generate matches on variables named
__cmp
and__self_#
and__arg_#_#
, and rustc doesn't like it when you conflict those with constants.The text was updated successfully, but these errors were encountered: