diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-16 23:08:10 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:25 +0000 |
commit | ac216880f5d1a3e5727b96d7b22433beec10382b (patch) | |
tree | f9d87289f7d870e5346ecb5c007a9ea43e63651b /crates/ra_hir/src/ty | |
parent | 3340807bd24f398dca158e85eebae74012d8ef4b (diff) |
Implement unlabeled struct field pattern inference
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 75fe2cc6e..10842f967 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -389,6 +389,11 @@ fn test() { | |||
389 | 389 | ||
390 | let S(y, z) = foo; | 390 | let S(y, z) = foo; |
391 | let E::A { x: new_var } = e; | 391 | let E::A { x: new_var } = e; |
392 | |||
393 | match e { | ||
394 | E::A { x } => x, | ||
395 | E::B => 1, | ||
396 | }; | ||
392 | } | 397 | } |
393 | "#, | 398 | "#, |
394 | "adt_pattern.txt", | 399 | "adt_pattern.txt", |