aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/cast4.rs
blob: 22ac0c5acf7edfb4e291a53239ad24b1e75cb891 (plain)
1
2
3
4
5
fn main() {
    let a: i32 = 123;
    let u = a as bool;
    // { dg-error "cannot cast .i32. as .bool." "" { target *-*-* } .-1 }
}