mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 00:47:16 +00:00
19 lines
226 B
Rust
19 lines
226 B
Rust
|
// run-rustfix
|
||
|
|
||
|
#![warn(clippy::match_wildcard_for_single_variants)]
|
||
|
#![allow(dead_code)]
|
||
|
|
||
|
enum Foo {
|
||
|
A,
|
||
|
B,
|
||
|
C,
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
match Foo::A {
|
||
|
Foo::A => {},
|
||
|
Foo::B => {},
|
||
|
_ => {},
|
||
|
}
|
||
|
}
|