rust/tests/ui/error-codes/E0512.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
107 B
Rust
Raw Normal View History

2016-08-25 17:14:20 -05:00
fn takes_u8(_: u8) {}
fn main() {
unsafe { takes_u8(::std::mem::transmute(0u16)); } //~ ERROR E0512
}