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
The following code gives an error pointing to the static FOO line, but not pointing to the FOO => line, so it's not obvious that the problem is really the match. I originally encountered this from (a form of) the bitflags! macro, which was doubly confusing.
pubstructFlags{bits:uint,}staticFOO:Flags = Flags{bits:0x01};staticBAR:Flags = Flags{bits:0x02};// caller is guaranteed to only set one bit here.pubfnfrob(f:Flags){match f
{FOO => {}BAR => {}
_ => {}}}