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
enumOpen{}enumClosed{}structDoor<State>{name: ~str}fnopen(Door{ name }:Door<Closed>) -> Door<Open>{Door{name: name }}fnmain(){let d:Door<Open> = Door{name: ~"front" };open(d);// Fails (as it should)let d = Door::<Open>{name: ~"front" };open(d);// Should fail but doesn't}
This compiles fine:
The text was updated successfully, but these errors were encountered: