2017-04-19 07:16:19 -05:00
|
|
|
#![crate_type = "lib"]
|
2015-03-29 18:23:15 -05:00
|
|
|
|
2017-04-19 07:16:19 -05:00
|
|
|
#[repr(u32)]
|
|
|
|
pub enum Foo {
|
|
|
|
Foo = Private::Variant as u32
|
|
|
|
}
|
|
|
|
|
|
|
|
#[repr(u8)]
|
|
|
|
enum Private {
|
|
|
|
Variant = 42
|
|
|
|
}
|
2014-01-29 10:04:14 -06:00
|
|
|
|
2017-04-19 07:16:19 -05:00
|
|
|
#[inline(always)]
|
|
|
|
pub fn foo() -> Foo {
|
|
|
|
Foo::Foo
|
2014-01-29 10:04:14 -06:00
|
|
|
}
|