From 9c2d83a4c809b0b11ca389bb454e197859e5116c Mon Sep 17 00:00:00 2001 From: Marcus Klaas de Vries Date: Wed, 16 Jan 2019 17:47:59 +0100 Subject: Add crude implementation of tuplestruct pattern inference --- crates/ra_hir/src/ty/tests/data/adt_pattern.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 crates/ra_hir/src/ty/tests/data/adt_pattern.txt (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 new file mode 100644 index 000000000..d23b865a0 --- /dev/null +++ b/crates/ra_hir/src/ty/tests/data/adt_pattern.txt @@ -0,0 +1,12 @@ +[49; 192) '{ ... }; }': () +[59; 60) 'e': E +[63; 76) 'E::A { x: 3 }': E +[73; 74) '3': usize +[82; 124) 'if let... }': [unknown] +[105; 106) 'e': E +[107; 124) '{ ... }': [unknown] +[117; 118) 'x': [unknown] +[130; 189) 'match ... }': [unknown] +[136; 137) 'e': E +[162; 163) 'x': [unknown] +[181; 182) '1': i32 -- cgit v1.2.3