rust/tests/ui/lint/dead-code/enum-variants.rs

15 lines
140 B
Rust
Raw Normal View History

// run-pass
2015-06-03 10:39:35 -05:00
#![deny(dead_code)]
enum Foo {
A,
B,
}
pub fn main() {
match Foo::A {
Foo::A | Foo::B => Foo::B
};
}