1 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
2 --> $DIR/single_match.rs:9:5
5 10 | | Some(y) => { println!("{:?}", y); }
8 | |_____^ help: try this: `if let Some(y) = x { println!("{:?}", y); }`
10 = note: `-D 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:15:5
16 16 | | (2...3, 7...9) => dummy(),
19 | |_____^ help: try this: `if let (2...3, 7...9) = z { dummy() }`
21 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
22 --> $DIR/single_match.rs:41:5
25 42 | | Some(y) => dummy(),
28 | |_____^ help: try this: `if let Some(y) = x { dummy() }`
30 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
31 --> $DIR/single_match.rs:46:5
34 47 | | Ok(y) => dummy(),
37 | |_____^ help: try this: `if let Ok(y) = y { dummy() }`
39 error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let`
40 --> $DIR/single_match.rs:53:5
43 54 | | Cow::Borrowed(..) => dummy(),
44 55 | | Cow::Owned(..) => (),
46 | |_____^ help: try this: `if let Cow::Borrowed(..) = c { dummy() }`
48 error: aborting due to 5 previous errors