Debian Codegraph @

.cargo/vendor/cbindgen/tests/rust/namespace_constant.rs

raw
1 pub const FOO: i32 = 10;
2 pub const BAR: &'static str = "hello world";
3 pub const ZOM: f32 = 3.14;
4
5 #[repr(C)]
6 struct Foo {
7 x: [i32; FOO],
8 }
9
10 #[no_mangle]
11 pub extern "C" fn root(x: Foo) { }