prefixed_struct_literal_deep.rs 231 B

1234567891011121314151617181920
  1. #[repr(C)]
  2. struct Foo {
  3. a: i32,
  4. b: u32,
  5. bar: Bar,
  6. }
  7. #[repr(C)]
  8. struct Bar {
  9. a: i32,
  10. }
  11. pub const VAL: Foo = Foo {
  12. a: 42,
  13. b: 1337,
  14. bar: Bar { a: 323 },
  15. };
  16. #[no_mangle]
  17. pub extern "C" fn root(x: Foo) {}