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 } }