diff options
author | WizardOfMenlo <[email protected]> | 2019-01-28 14:52:43 +0000 |
---|---|---|
committer | WizardOfMenlo <[email protected]> | 2019-01-28 14:52:43 +0000 |
commit | 9416904d148129a6e0315fd139ae5ae516ff104c (patch) | |
tree | b6a2754810348a9675cd86e4343e4a6bd725111e /crates/ra_hir/src/ty/tests.rs | |
parent | ebb19bb95c79671d5ef1e21a8fcb4daafc356490 (diff) |
Added support for primitive types type inference when using std::ops::Not
Diffstat (limited to 'crates/ra_hir/src/ty/tests.rs')
-rw-r--r-- | crates/ra_hir/src/ty/tests.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_hir/src/ty/tests.rs b/crates/ra_hir/src/ty/tests.rs index ac12d974b..b36e6ec47 100644 --- a/crates/ra_hir/src/ty/tests.rs +++ b/crates/ra_hir/src/ty/tests.rs | |||
@@ -166,10 +166,15 @@ fn test(x: SomeType) { | |||
166 | let d: i128 = -a; | 166 | let d: i128 = -a; |
167 | let e = -100; | 167 | let e = -100; |
168 | let f = !!!true; | 168 | let f = !!!true; |
169 | let g = !42; | ||
170 | let h = !10u32; | ||
171 | let j = !a; | ||
169 | -3.14; | 172 | -3.14; |
173 | !3; | ||
170 | -x; | 174 | -x; |
171 | !x; | 175 | !x; |
172 | -"hello"; | 176 | -"hello"; |
177 | !"hello"; | ||
173 | } | 178 | } |
174 | "#, | 179 | "#, |
175 | ); | 180 | ); |