aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/unary_not.rs
blob: 7e4de3dc0303056365469cce2b6df0c7ebb11d08 (plain)
1
2
3
4
5
6
7
8
fn main() {
    let a: i32 = -1;
    let b: i32 = 3 - -1;
    let c: bool = !false;
    let d: i32 = !3;

    let e: f32 = !5f32; // { dg-error "cannot apply unary '!' to f32" }
}