You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<anon>:5:12: 5:30 error: duplicate method [E0201]
<anon>:5 $( fn $name(&self) {} )*
^~~~~~~~~~~~~~~~~~
<anon>:12:5: 12:21 note: in this expansion of methods! (defined in <anon>)
Rustc should print a note: previous definition here and include the name of the method in the diagnostic (since both could be defined by macros, in which case the name will not be obvious).
The text was updated successfully, but these errors were encountered:
(same goes for "duplicate associated function" and similar errors)
I was playing around with macro-generated methods, and stumbled upon a bad diagnostic:
gives:
Rustc should print a
note: previous definition here
and include the name of the method in the diagnostic (since both could be defined by macros, in which case the name will not be obvious).The text was updated successfully, but these errors were encountered: