1 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
2 --> $DIR/single_match.rs:21:5
5 22 | | Some(y) => { println!("{:?}", y); }
8 | |_____^ help: try this: `if let Some(y) = x { println!("{:?}", y); }`
10 = note: `-D clippy::single-match` implied by `-D warnings`
12 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
13 --> $DIR/single_match.rs:27:5
16 28 | | // Note the missing block braces.
17 29 | | // We suggest `if let Some(y) = x { .. }` because the macro
18 30 | | // is expanded before we can do anything.
19 31 | | Some(y) => println!("{:?}", y),
22 | |_____^ help: try this: `if let Some(y) = x { println!("{:?}", y) }`
24 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
25 --> $DIR/single_match.rs:36:5
28 37 | | (2...3, 7...9) => dummy(),
31 | |_____^ help: try this: `if let (2...3, 7...9) = z { dummy() }`
33 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
34 --> $DIR/single_match.rs:62:5
37 63 | | Some(y) => dummy(),
40 | |_____^ help: try this: `if let Some(y) = x { dummy() }`
42 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
43 --> $DIR/single_match.rs:67:5
46 68 | | Ok(y) => dummy(),
49 | |_____^ help: try this: `if let Ok(y) = y { dummy() }`
51 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
52 --> $DIR/single_match.rs:74:5
55 75 | | Cow::Borrowed(..) => dummy(),
56 76 | | Cow::Owned(..) => (),
58 | |_____^ help: try this: `if let Cow::Borrowed(..) = c { dummy() }`
60 error: aborting due to 6 previous errors