diff options
author | Florian Diebold <[email protected]> | 2019-03-02 13:53:26 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-03-02 15:42:51 +0000 |
commit | b7fdad8448cbd3a94c2cb877a1d209f3182ca0d5 (patch) | |
tree | 5149aa6cb21bd9fe3640a6f8a749000c1f962463 /crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap | |
parent | 00b09bcd8c96c37633964aa40df711dc013a6ca5 (diff) |
Add a bunch of tests for type inference involving traits
None of them works correctly yet, of course.
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap new file mode 100644 index 000000000..a71dbaf00 --- /dev/null +++ b/crates/ra_hir/src/ty/snapshots/tests__infer_trait_method_generic_1.snap | |||
@@ -0,0 +1,11 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T13:49:53.771466423Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [33; 37) 'self': &[unknown] | ||
8 | [92; 111) '{ ...d(); }': () | ||
9 | [98; 99) 'S': S | ||
10 | [98; 108) 'S.method()': [unknown] | ||
11 | |||