rust/tests/ui/lint/dead-code/enum-variants.rs
2023-01-11 09:32:08 +00:00

15 lines
140 B
Rust

// run-pass
#![deny(dead_code)]
enum Foo {
A,
B,
}
pub fn main() {
match Foo::A {
Foo::A | Foo::B => Foo::B
};
}