mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Added description and orignal issue link to enum_u8_variant.rs
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
//@ run-pass
|
||||
//Test that checks pattern matching works correctly on a repr(u8) enum whose only variant contains an inner 'u8' field
|
||||
//https://github.com/rust-lang/rust/issues/34571
|
||||
#[repr(u8)]
|
||||
enum Foo {
|
||||
Foo(#[allow(dead_code)] u8),
|
||||
|
||||
Reference in New Issue
Block a user