namespaces_constant.rs 192 B

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