Implement unlabeled struct field pattern inference
This commit is contained in:
committed by
Aleksey Kladov
parent
3340807bd2
commit
ac216880f5
@@ -389,6 +389,11 @@ fn test() {
|
||||
|
||||
let S(y, z) = foo;
|
||||
let E::A { x: new_var } = e;
|
||||
|
||||
match e {
|
||||
E::A { x } => x,
|
||||
E::B => 1,
|
||||
};
|
||||
}
|
||||
"#,
|
||||
"adt_pattern.txt",
|
||||
|
||||
Reference in New Issue
Block a user