16 lines
154 B
Plaintext

enum S {
A(int),
B { v: int },
}
fn main() {
let s = S::A(123);
match s {
S::A(v) => {},
S::B { v: v } => {},
}
}