Rust (programming language): Difference between revisions

Content deleted Content added
Thunder491 (talk | contribs)
Undid revision 1307395954 by CoroneC0rnix-64 (talk): not informative
A248 (talk | contribs)
Update no_mangle attribute for modern Rust (it's been this way for years)
Line 602:
 
<syntaxhighlight lang="rust">
#[unsafe(no_mangle)]
pub extern "C" fn exported_from_rust(x: i32) -> i32 { x + 1 }
unsafe extern "C" {