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 bb25d99 commit c43fd7dCopy full SHA for c43fd7d
alloc/src/boxed.rs
@@ -97,12 +97,12 @@
97
//! #[repr(C)]
98
//! pub struct Foo;
99
//!
100
-//! #[no_mangle]
+//! #[unsafe(no_mangle)]
101
//! pub extern "C" fn foo_new() -> Box<Foo> {
102
//! Box::new(Foo)
103
//! }
104
105
106
//! pub extern "C" fn foo_delete(_: Option<Box<Foo>>) {}
107
//! ```
108
0 commit comments