diff options
Diffstat (limited to 'tests/expectations/tests/enum-default-rust.rs')
-rw-r--r-- | tests/expectations/tests/enum-default-rust.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/expectations/tests/enum-default-rust.rs b/tests/expectations/tests/enum-default-rust.rs new file mode 100644 index 00000000..1400e373 --- /dev/null +++ b/tests/expectations/tests/enum-default-rust.rs @@ -0,0 +1,15 @@ +/* automatically generated by rust-bindgen */ + +#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] + +#[repr(u32)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +pub enum Foo { + Bar = 0, + Qux = 1, +} +pub mod Neg { + pub type Type = i32; + pub const MinusOne: Type = -1; + pub const One: Type = 1; +} |