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

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

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