aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/ty/tests/data
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2019-01-21 20:42:19 +0000
committerFlorian Diebold <[email protected]>2019-01-21 20:42:19 +0000
commite45f476d5691a6a0d994eb6f777bbf291348f93e (patch)
treee786aad9c46072c992c634466e834feb64c856fb /crates/ra_hir/src/ty/tests/data
parente0d8c86563b72e5414cf10fe16da5e88201447e2 (diff)
Fix panic trying to get substs on unknown type
Fixes #585.
Diffstat (limited to 'crates/ra_hir/src/ty/tests/data')
-rw-r--r--crates/ra_hir/src/ty/tests/data/bug_585.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests/data/bug_585.txt b/crates/ra_hir/src/ty/tests/data/bug_585.txt
new file mode 100644
index 000000000..627702a38
--- /dev/null
+++ b/crates/ra_hir/src/ty/tests/data/bug_585.txt
@@ -0,0 +1,8 @@
1[11; 89) '{ ... } }': ()
2[17; 21) 'X {}': [unknown]
3[27; 87) 'match ... }': ()
4[33; 34) 'x': [unknown]
5[45; 52) 'A::B {}': [unknown]
6[56; 58) '()': ()
7[68; 74) 'A::Y()': [unknown]
8[78; 80) '()': ()