1error: this match could be written as a `let` statement
2  --> $DIR/match_single_binding2.rs:18:36
3   |
4LL |               Some((iter, _item)) => match iter.size_hint() {
5   |  ____________________________________^
6LL | |                 (min, max) => (min.saturating_add(1), max.and_then(|max| max.checked_add(1))),
7LL | |             },
8   | |_____________^
9   |
10   = note: `-D clippy::match-single-binding` implied by `-D warnings`
11help: consider using `let` statement
12   |
13LL ~             Some((iter, _item)) => {
14LL +                 let (min, max) = iter.size_hint();
15LL +                 (min.saturating_add(1), max.and_then(|max| max.checked_add(1)))
16LL ~             },
17   |
18
19error: this match could be written as a `let` statement
20  --> $DIR/match_single_binding2.rs:31:13
21   |
22LL | /             match get_tup() {
23LL | |                 (a, b) => println!("a {:?} and b {:?}", a, b),
24LL | |             }
25   | |_____________^
26   |
27help: consider using `let` statement
28   |
29LL ~             let (a, b) = get_tup();
30LL +             println!("a {:?} and b {:?}", a, b);
31   |
32
33error: this match could be replaced by its scrutinee and body
34  --> $DIR/match_single_binding2.rs:42:5
35   |
36LL | /     match side_effects() {
37LL | |         _ => println!("Side effects"),
38LL | |     }
39   | |_____^
40   |
41help: consider using the scrutinee and body instead
42   |
43LL ~     side_effects();
44LL +     println!("Side effects");
45   |
46
47error: this match could be replaced by its scrutinee and body
48  --> $DIR/match_single_binding2.rs:49:5
49   |
50LL | /     match match x {
51LL | |         0 => 1,
52LL | |         _ => 2,
53LL | |     } {
54LL | |         _ => println!("Single branch"),
55LL | |     }
56   | |_____^
57   |
58help: consider using the scrutinee and body instead
59   |
60LL ~     match x {
61LL +         0 => 1,
62LL +         _ => 2,
63LL +     };
64LL +     println!("Single branch");
65   |
66
67error: aborting due to 4 previous errors
68
69