rust/tests/ui/issues/issue-34571.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
148 B
Rust
Raw Normal View History

// run-pass
2017-03-16 10:21:40 -05:00
#[repr(u8)]
enum Foo {
2022-07-25 15:36:03 -05:00
Foo(#[allow(unused_tuple_struct_fields)] u8),
2017-03-16 10:21:40 -05:00
}
fn main() {
match Foo::Foo(1) {
_ => ()
}
}