blob: 4967866b7e7fef0c3bb899f8c0d38f258ee0b476 [file] [log] [blame]
// Only works on Unix targets
//@ignore-target: windows wasm
//@only-on-host
//@normalize-stderr-test: "OS `.*`" -> "$$OS"
extern "C" {
fn u8_id(x: u8) -> bool;
}
fn main() {
unsafe {
u8_id(2); //~ ERROR: invalid value: encountered 0x02, but expected a boolean
}
}