From 9416904d148129a6e0315fd139ae5ae516ff104c Mon Sep 17 00:00:00 2001 From: WizardOfMenlo Date: Mon, 28 Jan 2019 14:52:43 +0000 Subject: Added support for primitive types type inference when using std::ops::Not --- crates/ra_hir/src/ty/tests.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/ra_hir/src/ty/tests.rs') 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) { let d: i128 = -a; let e = -100; let f = !!!true; + let g = !42; + let h = !10u32; + let j = !a; -3.14; + !3; -x; !x; -"hello"; + !"hello"; } "#, ); -- cgit v1.2.3