Skip to content

Commit 950be3e

Browse files
04112029
1 parent 099a52e commit 950be3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/tests/tests9.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
//
2828
// You should NOT modify any existing code except for adding two lines of attributes.
2929

30-
// I AM NOT DONE
31-
3230
extern "Rust" {
3331
fn my_demo_function(a: u32) -> u32;
32+
#[link_name = "my_demo_function"]
3433
fn my_demo_function_alias(a: u32) -> u32;
3534
}
3635

3736
mod Foo {
3837
// No `extern` equals `extern "Rust"`.
38+
#[no_mangle]
3939
fn my_demo_function(a: u32) -> u32 {
4040
a
4141
}

0 commit comments

Comments
 (0)