1 error: this match could be written as a `let` statement
2 --> $DIR/match_single_binding.rs:28:5
4 LL | / match (a, b, c) {
6 LL | | println!("{} {} {}", x, y, z);
11 = note: `-D clippy::match-single-binding` implied by `-D warnings`
12 help: consider using `let` statement
14 LL | let (x, y, z) = (a, b, c);
16 LL | println!("{} {} {}", x, y, z);
20 error: this match could be written as a `let` statement
21 --> $DIR/match_single_binding.rs:34:5
23 LL | / match (a, b, c) {
24 LL | | (x, y, z) => println!("{} {} {}", x, y, z),
28 help: consider using `let` statement
30 LL | let (x, y, z) = (a, b, c);
31 LL | println!("{} {} {}", x, y, z);
34 error: this match could be replaced by its body itself
35 --> $DIR/match_single_binding.rs:51:5
38 LL | | _ => println!("whatever"),
40 | |_____^ help: consider using the match body instead: `println!("whatever");`
42 error: this match could be replaced by its body itself
43 --> $DIR/match_single_binding.rs:55:5
48 LL | | println!("x has a value of {}", x);
53 help: consider using the match body instead
57 LL | println!("x has a value of {}", x);
61 error: this match could be replaced by its body itself
62 --> $DIR/match_single_binding.rs:62:5
73 help: consider using the match body instead
78 LL | println!("e is superior to 5");
83 error: this match could be written as a `let` statement
84 --> $DIR/match_single_binding.rs:72:5
87 LL | | Point { x, y } => println!("Coords: ({}, {})", x, y),
91 help: consider using `let` statement
93 LL | let Point { x, y } = p;
94 LL | println!("Coords: ({}, {})", x, y);
97 error: this match could be written as a `let` statement
98 --> $DIR/match_single_binding.rs:76:5
101 LL | | Point { x: x1, y: y1 } => println!("Coords: ({}, {})", x1, y1),
105 help: consider using `let` statement
107 LL | let Point { x: x1, y: y1 } = p;
108 LL | println!("Coords: ({}, {})", x1, y1);
111 error: this match could be written as a `let` statement
112 --> $DIR/match_single_binding.rs:81:5
115 LL | | ref r => println!("Got a reference to {}", r),
119 help: consider using `let` statement
122 LL | println!("Got a reference to {}", r);
125 error: this match could be written as a `let` statement
126 --> $DIR/match_single_binding.rs:86:5
129 LL | | ref mut mr => println!("Got a mutable reference to {}", mr),
133 help: consider using `let` statement
135 LL | let ref mut mr = x;
136 LL | println!("Got a mutable reference to {}", mr);
139 error: this match could be written as a `let` statement
140 --> $DIR/match_single_binding.rs:90:5
142 LL | / let product = match coords() {
143 LL | | Point { x, y } => x * y,
147 help: consider using `let` statement
149 LL | let Point { x, y } = coords();
150 LL | let product = x * y;
153 error: this match could be written as a `let` statement
154 --> $DIR/match_single_binding.rs:98:18
156 LL | .map(|i| match i.unwrap() {
157 | __________________^
158 LL | | unwrapped => unwrapped,
162 help: consider using `let` statement
165 LL | let unwrapped = i.unwrap();
170 error: this match could be replaced by its body itself
171 --> $DIR/match_single_binding.rs:112:5
173 LL | / match match y {
177 LL | | _ => println!("Single branch"),
179 | |_____^ help: consider using the match body instead: `println!("Single branch");`
181 error: aborting due to 12 previous errors