diff options
Diffstat (limited to 'tests/expectations/what_is_going_on.rs')
-rw-r--r-- | tests/expectations/what_is_going_on.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/expectations/what_is_going_on.rs b/tests/expectations/what_is_going_on.rs new file mode 100644 index 00000000..b6a5c86a --- /dev/null +++ b/tests/expectations/what_is_going_on.rs @@ -0,0 +1,29 @@ +/* automatically generated by rust-bindgen */ + + +#![allow(non_snake_case)] + + +#[repr(C)] +#[derive(Debug, Copy)] +pub struct UnknownUnits { + pub _address: u8, +} +#[test] +fn bindgen_test_layout_UnknownUnits() { + assert_eq!(::std::mem::size_of::<UnknownUnits>() , 1usize); + assert_eq!(::std::mem::align_of::<UnknownUnits>() , 1usize); +} +impl Clone for UnknownUnits { + fn clone(&self) -> Self { *self } +} +pub type Float = f32; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct PointTyped<units, F> { + pub x: Float, + pub y: Float, + pub _phantom_0: ::std::marker::PhantomData<units>, + pub _phantom_1: ::std::marker::PhantomData<F>, +} +pub type IntPoint = PointTyped<UnknownUnits, f32>; |