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 36a7633 commit 5b45a89Copy full SHA for 5b45a89
src/ffi.md
@@ -740,8 +740,8 @@ void bar(struct Bar *arg);
740
To do this in Rust, let’s create our own opaque types:
741
742
```rust
743
-#[repr(C)] pub struct Foo { private: [u8; 0] }
744
-#[repr(C)] pub struct Bar { private: [u8; 0] }
+#[repr(C)] pub struct Foo { _private: [u8; 0] }
+#[repr(C)] pub struct Bar { _private: [u8; 0] }
745
746
extern "C" {
747
pub fn foo(arg: *mut Foo);
0 commit comments