Added support for primitive types type inference when using std::ops::Not
This commit is contained in:
@@ -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";
|
||||
}
|
||||
"#,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user