summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/const_prop/cast.rs
blob: 3d543badace1e86ecdadbf15527bc307fc1045de (plain)
1
2
3
4
5
6
7
8
9
// skip-filecheck
// unit-test: ConstProp
// EMIT_MIR cast.main.ConstProp.diff

fn main() {
    let x = 42u8 as u32;

    let y = 42u32 as u8;
}