the trait core::ops::Add<()>
is not implemented for i32
#39579
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Uh oh!
There was an error while loading. Please reload this page.
This error message was confusing to me - at first glance, it seems like it's saying that the add operator isn't implemented for the basic integer type, which makes no sense.
I'm not sure if this would look correct for all generics, but I think it would have made more sense to me if this error message were reversed -
the trait 'i32::core::ops::Add' is not implemented for '<()>'.
The text was updated successfully, but these errors were encountered: