We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9b5d523 + 663a959 commit 4957414Copy full SHA for 4957414
src/libstd/libc.rs
@@ -186,6 +186,13 @@ pub mod types {
186
// Standard types that are opaque or common, so are not per-target.
187
pub mod common {
188
pub mod c95 {
189
+ /**
190
+ Type used to construct void pointers for use with C.
191
+
192
+ This type is only useful as a pointer target. Do not use it as a
193
+ return type for FFI functions which have the `void` return type in
194
+ C. Use the unit type `()` or omit the return type instead.
195
+ */
196
pub enum c_void {}
197
pub enum FILE {}
198
pub enum fpos_t {}
0 commit comments