2
0

assoc_constant.rs 283 B

1234567891011121314
  1. #[repr(C)]
  2. struct Foo {}
  3. impl Foo {
  4. pub const GA: i32 = 10;
  5. pub const BU: &'static str = "hello world";
  6. pub const ZO: f32 = 3.14;
  7. pub(crate) const DONT_EXPORT_CRATE: i32 = 20;
  8. const DONT_EXPORT_PRIV: i32 = 30;
  9. }
  10. #[no_mangle]
  11. pub extern "C" fn root(x: Foo) { }