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_from_bound_2.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_from_bound_2.snap')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap new file mode 100644 index 000000000..37def29c3 --- /dev/null +++ b/crates/ra_hir/src/ty/snapshots/tests__infer_from_bound_2.snap | |||
@@ -0,0 +1,18 @@ | |||
1 | --- | ||
2 | created: "2019-03-02T13:49:53.572131028Z" | ||
3 | creator: [email protected] | ||
4 | source: crates/ra_hir/src/ty/tests.rs | ||
5 | expression: "&result" | ||
6 | --- | ||
7 | [87; 88) 't': T | ||
8 | [98; 100) '{}': () | ||
9 | [111; 163) '{ ...(s); }': () | ||
10 | [121; 122) 's': S<[unknown]> | ||
11 | [125; 126) 'S': S<[unknown]>(T) -> S<T> | ||
12 | [125; 135) 'S(unknown)': S<[unknown]> | ||
13 | [127; 134) 'unknown': [unknown] | ||
14 | [145; 146) 'x': u32 | ||
15 | [154; 157) 'foo': fn foo<u32, S<[unknown]>>(T) -> U | ||
16 | [154; 160) 'foo(s)': u32 | ||
17 | [158; 159) 's': S<[unknown]> | ||
18 | |||