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 5b9af2f commit 86b7777Copy full SHA for 86b7777
examples/rust/default.rs
@@ -1,4 +1,11 @@
1
// Type your code here, or load an example.
2
+
3
+// As of Rust 1.75, small functions are automatically
4
+// marked as `#[inline]` so they will not show up in
5
+// the output when compiling with optimisations. Use
6
+// `#[no_mangle]` or `#[inline(never)]` to work around
7
+// this issue.
8
+#[no_mangle]
9
pub fn square(num: i32) -> i32 {
10
num * num
11
}
0 commit comments