Files
cbindgen/tests/rust/prefix.rs
T
Ingvar Stepanyan 8ea3b2d25f Respect visibility of constants (#314)
Fixes #123:
 - Adds visibility check for module-level constants.
 - Adds visibility check for associated constants.
 - Fixes bitflags expansion to produce public associated constants (as the real expansion does).
2019-04-16 11:25:23 +02:00

15 lines
285 B
Rust

pub const LEN: i32 = 42;
pub type NamedLenArray = [i32; LEN];
pub type ValuedLenArray = [i32; 42];
#[repr(u8)]
pub enum AbsoluteFontWeight {
Weight(f32),
Normal,
Bold,
}
#[no_mangle]
pub extern "C" fn root(x: NamedLenArray, y: ValuedLenArray, z: AbsoluteFontWeight) { }