2024-11-27 15:37:27 +01:00
|
|
|
error[E0617]: can't pass a function item to a variadic function
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-32201.rs:9:16
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
|
LL | foo(0, bar);
|
2024-11-27 15:37:27 +01:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
|
|
= help: a function item is zero-sized and needs to be cast into a function pointer to be used in FFI
|
|
|
|
|
= note: for more information on function items, visit https://doc.rust-lang.org/reference/types/function-item.html
|
|
|
|
|
help: use a function pointer instead
|
|
|
|
|
|
|
|
|
|
|
LL | foo(0, bar as fn(*const u8));
|
|
|
|
|
| ++++++++++++++++
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0617`.
|