diff options
author | Marcus Klaas de Vries <[email protected]> | 2019-01-28 22:06:11 +0000 |
---|---|---|
committer | Marcus Klaas de Vries <[email protected]> | 2019-01-28 22:09:14 +0000 |
commit | 3daca3eb4d843199540edfb1092f57f49938d0f6 (patch) | |
tree | 4cdc5c921b024d8b348b73e1a7c3e6a56fc11305 /crates/ra_hir/src/ty/tests.rs | |
parent | 3f4f50baaa21cb2d0f6c102f1ca521946071a8dc (diff) |
Infer type of match guard
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index f74d6f5ea..8aa188059 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -421,7 +421,8 @@ fn test() { | |||
421 | 421 | ||
422 | match e { | 422 | match e { |
423 | E::A { x } => x, | 423 | E::A { x } => x, |
424 | E::B => 1, | 424 | E::B if foo => 1, |
425 | E::B => 10, | ||
425 | }; | 426 | }; |
426 | 427 | ||
427 | let ref d @ E::A { .. } = e; | 428 | let ref d @ E::A { .. } = e; |