rust/src/test/run-pass/lint-dead-code-variant.rs

13 lines
127 B
Rust
Raw Normal View History

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
};
}