☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
unary_negation.rs
☽
☼
gcc/testsuite/rust/compile/unary_negation.rs
code
plain
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
}