static.rs 221 B

1234567891011121314151617
  1. #[no_mangle]
  2. pub static NUMBER: i32 = 10;
  3. #[repr(C)]
  4. struct Foo {
  5. }
  6. struct Bar {
  7. }
  8. #[no_mangle]
  9. pub static mut FOO: Foo = Foo { };
  10. #[no_mangle]
  11. pub static BAR: Bar = Bar { };
  12. #[no_mangle]
  13. pub extern "C" fn root() { }