diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-03 11:44:01 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-03-03 11:44:01 +0000 |
commit | 17aaece6b39c2fb525be0eccce4626fc622e8236 (patch) | |
tree | 864de162bea4cf160a78d56d6f3a0c0fd82ca73a /crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap | |
parent | 00b09bcd8c96c37633964aa40df711dc013a6ca5 (diff) | |
parent | 2e8f25884584ec7dd21bdd4be1bcf1c857efa35e (diff) |
Merge #917
917: Trait tests r=flodiebold a=flodiebold
This adds a bunch of basic tests for trait functionality, just to outline what seems like the first goals for that ;)
It also changes the display of `Ty::Unknown` to `{unknown}`, since `[unknown]` could be confused with a slice, and fixes an error in the emacs runnables code.
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap')
-rw-r--r-- | crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap b/crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap deleted file mode 100644 index e287a100e..000000000 --- a/crates/ra_hir/src/ty/snapshots/tests__infer_literals.snap +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | --- | ||
2 | created: "2019-01-22T14:44:59.974903100+00:00" | ||
3 | creator: [email protected] | ||
4 | expression: "&result" | ||
5 | source: "crates\\ra_hir\\src\\ty\\tests.rs" | ||
6 | --- | ||
7 | [11; 201) '{ ...o"#; }': () | ||
8 | [17; 21) '5i32': i32 | ||
9 | [27; 34) '"hello"': &str | ||
10 | [40; 48) 'b"bytes"': &[u8] | ||
11 | [54; 57) ''c'': char | ||
12 | [63; 67) 'b'b'': u8 | ||
13 | [73; 77) '3.14': f64 | ||
14 | [83; 87) '5000': i32 | ||
15 | [93; 98) 'false': bool | ||
16 | [104; 108) 'true': bool | ||
17 | [114; 182) 'r#" ... "#': &str | ||
18 | [188; 198) 'br#"yolo"#': &[u8] | ||
19 | |||