diff options
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index 53ea99874..cbdb2a4b7 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -145,6 +145,7 @@ fn test() { | |||
145 | 3.14; | 145 | 3.14; |
146 | 5000; | 146 | 5000; |
147 | false; | 147 | false; |
148 | true; | ||
148 | } | 149 | } |
149 | "#, | 150 | "#, |
150 | "literals.txt", | 151 | "literals.txt", |
@@ -199,7 +200,7 @@ fn f(x: bool) -> i32 { | |||
199 | 0i32 | 200 | 0i32 |
200 | } | 201 | } |
201 | 202 | ||
202 | fn test() { | 203 | fn test() -> bool { |
203 | let x = a && b; | 204 | let x = a && b; |
204 | let y = true || false; | 205 | let y = true || false; |
205 | let z = x == y; | 206 | let z = x == y; |
@@ -296,8 +297,6 @@ fn test(x: &str, y: isize) { | |||
296 | let b = (a, x); | 297 | let b = (a, x); |
297 | let c = (y, x); | 298 | let c = (y, x); |
298 | let d = (c, x); | 299 | let d = (c, x); |
299 | |||
300 | // we have not infered these case yet. | ||
301 | let e = (1, "e"); | 300 | let e = (1, "e"); |
302 | let f = (e, "d"); | 301 | let f = (e, "d"); |
303 | } | 302 | } |