12 lines
176 B
Rust
12 lines
176 B
Rust
const FOO: i32 = 10;
|
|
const BAR: &'static str = "hello world";
|
|
const ZOM: f32 = 3.14;
|
|
|
|
#[repr(C)]
|
|
struct Foo {
|
|
x: [i32; FOO],
|
|
}
|
|
|
|
#[no_mangle]
|
|
extern "C" fn root(x: Foo) { }
|