From 06d16a18f632711de588ccd12a6a1ed6f2b9ad69 Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Thu, 17 Jan 2019 00:29:26 +0100 Subject: Implement match binding type inference and arm unification --- crates/ra_hir/src/ty/tests/data/adt_pattern.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crates/ra_hir/src/ty/tests') diff --git a/crates/ra_hir/src/ty/tests/data/adt_pattern.txt b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt index 41e9c9d34..3b9b9a078 100644 --- a/crates/ra_hir/src/ty/tests/data/adt_pattern.txt +++ b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt @@ -1,4 +1,4 @@ -[68; 155) '{ ...= e; }': () +[68; 221) '{ ... }; }': () [78; 79) 'e': E [82; 95) 'E::A { x: 3 }': E [92; 93) '3': usize @@ -9,3 +9,10 @@ [129; 148) 'E::A {..._var }': E [139; 146) 'new_var': usize [151; 152) 'e': E +[159; 218) 'match ... }': usize +[165; 166) 'e': E +[177; 187) 'E::A { x }': E +[184; 185) 'x': usize +[191; 192) 'x': usize +[202; 206) 'E::B': E +[210; 211) '1': usize -- cgit v1.2.3