mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
17 lines
191 B
Rust
17 lines
191 B
Rust
#![crate_type = "lib"]
|
|
|
|
#[repr(u32)]
|
|
pub enum Foo {
|
|
Foo = Private::Variant as u32
|
|
}
|
|
|
|
#[repr(u8)]
|
|
enum Private {
|
|
Variant = 42
|
|
}
|
|
|
|
#[inline(always)]
|
|
pub fn foo() -> Foo {
|
|
Foo::Foo
|
|
}
|