trisquel-icecat/icecat/third_party/cbindgen/tests/rust/as_ty.rs
2025-10-06 02:35:48 -06:00

17 lines
306 B
Rust

pub const SIZE: isize = 4;
#[repr(C)]
pub struct WithoutAs {
items: [char; SIZE as usize],
}
#[repr(C)]
pub struct WithAs {
items: [char; SIZE as usize],
}
// dummy function to make `WithoutAs` and `WithAs` part of the public api
#[no_mangle]
pub extern fn some_fn(a: WithoutAs, b: WithAs) {
}