rust/src/test/ui/issues/issue-32201.rs
2018-12-25 21:08:33 -07:00

14 lines
241 B
Rust

extern {
fn foo(a: i32, ...);
}
fn bar(_: *const u8) {}
fn main() {
unsafe {
foo(0, bar);
//~^ ERROR can't pass `fn(*const u8) {bar}` to variadic function
//~| HELP cast the value to `fn(*const u8)`
}
}