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
I just tripped myself up on this one for a little while by porting an impl block to trait signatures.
The error message is misleading for syntax that would otherwise be flat-out invalid.
#[typestate]mod traffic_light {#[automaton]pubstructTrafficLight;#[state]pubstructGreen;// Errors with "Non-productive state. For a state to be productive..."#[state]pubstructRed;pubtraitGreen{fnturn_on() -> Green;pubfnto_red(self) -> Red;}pubtraitRed{fnturn_off(self);}}
The text was updated successfully, but these errors were encountered:
I just tripped myself up on this one for a little while by porting an
impl
block to trait signatures.The error message is misleading for syntax that would otherwise be flat-out invalid.
The text was updated successfully, but these errors were encountered: