Added support for primitive types type inference when using std::ops::Not

This commit is contained in:
WizardOfMenlo
2019-01-28 14:52:43 +00:00
parent ebb19bb95c
commit 9416904d14
3 changed files with 41 additions and 15 deletions

View File

@@ -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";
}
"#,
);