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
structFoo<T>{value:T}constF:Foo<int> = Foo{value:2};fnmain(){let x = Foo{value:2};match x {F => {println!("Hi");}
_ => {println!("Ho");}}}
I feel pretty sure that we would want matching to use a PartialEq impl. For now constant patterns should be limited to uint/int/&str. I'll throw it into a patch I'm working on.