diff options
author | Christian Poveda <christian.poveda@ferrous-systems.com> | 2022-09-12 13:45:54 -0500 |
---|---|---|
committer | Darren Kulp <darren@kulp.ch> | 2022-09-18 20:11:42 -0400 |
commit | 0d805d70d5c6e4cc99cbad7a988c38bdfe52321b (patch) | |
tree | 06ad665c3c8580858c8781a376ef7fddc6d7834d /tests | |
parent | 61636e94ca315278d9ac5f1210ffca6cca697428 (diff) |
fix `--newtype-global-enum` option
Diffstat (limited to 'tests')
-rw-r--r-- | tests/expectations/tests/newtype-global-enum.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/expectations/tests/newtype-global-enum.rs b/tests/expectations/tests/newtype-global-enum.rs index ff980637..cf23cca6 100644 --- a/tests/expectations/tests/newtype-global-enum.rs +++ b/tests/expectations/tests/newtype-global-enum.rs @@ -5,8 +5,10 @@ non_upper_case_globals )] -pub const Foo_Bar: Foo = 2; -pub const Foo_Baz: Foo = 4; -pub const Foo_Duplicated: Foo = 4; -pub const Foo_Negative: Foo = -3; -pub type Foo = ::std::os::raw::c_int; +pub const Foo_Bar: Foo = Foo(2); +pub const Foo_Baz: Foo = Foo(4); +pub const Foo_Duplicated: Foo = Foo(4); +pub const Foo_Negative: Foo = Foo(-3); +#[repr(transparent)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct Foo(pub ::std::os::raw::c_int); |