Debian Codegraph @

gcc/testsuite/rust/compile/unary_negation.rs

raw
1 fn main() {
2 let a: i32 = -1;
3 let b: i32 = 3 - -1;
4 let c: bool = !false;
5 let d: i32 = !3;
6
7 let e: f32 = -true; // // { dg-error "cannot apply unary - to bool" }
8 }