summaryrefslogtreecommitdiffstats
path: root/tests/rust/namespaces_constant.rs
blob: 01a8450b5d0eac294be58b3829fac9819ebb0459 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub const FOO: i32 = 10;
pub const BAR: &'static str = "hello world";
pub const ZOM: f32 = 3.14;

#[repr(C)]
struct Foo {
    x: [i32; FOO],
}

#[no_mangle]
pub extern "C" fn root(x: Foo) { }