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
traitMyThing{fndo_stuff(&self) -> bool;fndo_other_stuff(&self) -> bool;}structOther{}implMyThingforOther{fndo_stuff(&self) -> bool{true}fndo_other_stuff(&self) -> bool{true}}fnmain(){let thing = Other{};
thing.do_stuff();// NOTE: We never call `do_other_stuff`.}
Even though we never call do_other_stuff, the compiler does not generate a warning that this trait method is unused. We've defined an implementation for it, but this doesn't mean that the method is used.
Apologies if this issue has already been raised.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Take this example code.
Even though we never call
do_other_stuff
, the compiler does not generate a warning that this trait method is unused. We've defined an implementation for it, but this doesn't mean that the method is used.Apologies if this issue has already been raised.
The text was updated successfully, but these errors were encountered: