blob: f27bb1c2eb5b664ba402b8edaad42a52abb0f4a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
extern "C" {
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)`
}
}
|