Implement unlabeled struct field pattern inference

This commit is contained in:
Marcus Klaas de Vries
2019-01-17 00:08:10 +01:00
committed by Aleksey Kladov
parent 3340807bd2
commit ac216880f5
4 changed files with 26 additions and 47 deletions

View File

@@ -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",