39 lines
694 B
Rust
39 lines
694 B
Rust
|
// run-rustfix
|
||
|
|
||
|
#![warn(clippy::pats_with_wild_match_arm)]
|
||
|
|
||
|
fn main() {
|
||
|
match "foo" {
|
||
|
"a" => {
|
||
|
dbg!("matched a");
|
||
|
},
|
||
|
_ => {
|
||
|
dbg!("matched (bar or) wild");
|
||
|
},
|
||
|
};
|
||
|
match "foo" {
|
||
|
"a" => {
|
||
|
dbg!("matched a");
|
||
|
},
|
||
|
_ => {
|
||
|
dbg!("matched (bar or bar2 or) wild");
|
||
|
},
|
||
|
};
|
||
|
match "foo" {
|
||
|
"a" => {
|
||
|
dbg!("matched a");
|
||
|
},
|
||
|
_ => {
|
||
|
dbg!("matched (bar or) wild");
|
||
|
},
|
||
|
};
|
||
|
match "foo" {
|
||
|
"a" => {
|
||
|
dbg!("matched a");
|
||
|
},
|
||
|
_ => {
|
||
|
dbg!("matched (bar or) wild");
|
||
|
},
|
||
|
};
|
||
|
}
|