rust/tests/ui/issues/auxiliary/issue-41394.rs
2023-01-11 09:32:08 +00:00

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
}