We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enum Enum { A, B { x: usize }, } fn f() { let v = Enum::B { x: 3 }; match v { Enum::A => (), Enum::B {x} => (), } }
Open this code snippet in the playground
extracts to:
type t_Enum = | Enum_A : t_Enum | Enum_B { f_x:usize }: t_Enum let f (_: Prims.unit) : Prims.unit = let v:t_Enum = Enum_B ({ Playground.Enum.f_x = sz 3 }) <: t_Enum in match v with | Enum_A -> () <: Prims.unit | Enum_B { Playground.Enum.f_x = x } -> () <: Prims.unit
The second last line is wrong: Playground.Enum is not the namespace of the field Enum::x.
Playground.Enum
Enum::x
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Open this code snippet in the playground
extracts to:
The second last line is wrong:
Playground.Enum
is not the namespace of the fieldEnum::x
.The text was updated successfully, but these errors were encountered: