diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-16 15:34:33 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-19 12:37:25 +0000 |
commit | 3b0de53904e560f85ccfdc38e66e6d6c9e997b7a (patch) | |
tree | 2459272caf6aea31d38b414bc15f38f61c2b64ef /crates/ra_hir/src/ty | |
parent | 5648dcd36e65dde9c8f41884eed64a7e1a1d2073 (diff) |
Work on type inference for ADT patterns
Diffstat (limited to 'crates/ra_hir/src/ty')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index a55551cbb..ff2c8b0d4 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -362,7 +362,10 @@ fn test(x: &str, y: isize) { | |||
362 | fn infer_pattern() { | 362 | fn infer_pattern() { |
363 | check_inference( | 363 | check_inference( |
364 | r#" | 364 | r#" |
365 | enum E { A { x: usize }, B } | 365 | enum E { |
366 | A { x: usize }, | ||
367 | B | ||
368 | } | ||
366 | 369 | ||
367 | fn test(x: &i32) { | 370 | fn test(x: &i32) { |
368 | let y = x; | 371 | let y = x; |