1 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
2 --> $DIR/single_match.rs:17:5
6 19 | | println!("{:?}", y);
12 = note: `-D clippy::single-match` implied by `-D warnings`
15 17 | if let Some(y) = x {
16 18 | println!("{:?}", y);
20 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
21 --> $DIR/single_match.rs:25:5
24 26 | | // Note the missing block braces.
25 27 | | // We suggest `if let Some(y) = x { .. }` because the macro
26 28 | | // is expanded before we can do anything.
27 29 | | Some(y) => println!("{:?}", y),
30 | |_____^ help: try this: `if let Some(y) = x { println!("{:?}", y) }`
32 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
33 --> $DIR/single_match.rs:34:5
36 35 | | (2...3, 7...9) => dummy(),
39 | |_____^ help: try this: `if let (2...3, 7...9) = z { dummy() }`
41 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
42 --> $DIR/single_match.rs:63:5
45 64 | | Some(y) => dummy(),
48 | |_____^ help: try this: `if let Some(y) = x { dummy() }`
50 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
51 --> $DIR/single_match.rs:68:5
54 69 | | Ok(y) => dummy(),
57 | |_____^ help: try this: `if let Ok(y) = y { dummy() }`
59 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
60 --> $DIR/single_match.rs:75:5
63 76 | | Cow::Borrowed(..) => dummy(),
64 77 | | Cow::Owned(..) => (),
66 | |_____^ help: try this: `if let Cow::Borrowed(..) = c { dummy() }`
68 error: aborting due to 6 previous errors