aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/cast1.rs
blob: 74c4b1eaac4c773165abb95d7a63aa256814d686 (plain)
1
2
3
4
5
fn main() {
    let a: i32 = 123;
    let b = a as char;
    // { dg-error "invalid cast .i32. to .char." "" { target *-*-* } .-1 }
}