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

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

    let y = 42u32 as u8;
}