summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0512.rs
blob: e70992aee23a4128d9b1f131728ce8efa68cdf20 (plain)
1
2
3
4
5
fn takes_u8(_: u8) {}

fn main() {
    unsafe { takes_u8(::std::mem::transmute(0u16)); } //~ ERROR E0512
}