8ea3b2d25f
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).
15 lines
285 B
Rust
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) { }
|