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

12 lines
148 B
Rust

// run-pass
#[repr(u8)]
enum Foo {
Foo(#[allow(unused_tuple_struct_fields)] u8),
}
fn main() {
match Foo::Foo(1) {
_ => ()
}
}