We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55dccb9 commit 9c0fa15Copy full SHA for 9c0fa15
src/librustc_typeck/diagnostics.rs
@@ -4632,9 +4632,10 @@ unsafe {
4632
}
4633
```
4634
4635
-To fix this error, you need to pass variables corresponding to C types as much
4636
-as possible. For better explanations, see The Rust Book:
4637
-https://doc.rust-lang.org/book/
+Certain Rust types must be cast before passing them to a variadic function,
+because of arcane ABI rules dictated by the C standard. To fix the error,
+cast the value to the type specified by the error message (which you may need
4638
+to import from `std::os::raw`).
4639
"##,
4640
4641
E0618: r##"
0 commit comments