2020-01-15 00:56:56 -06:00
|
|
|
error: this match could be written as a `let` statement
|
2020-01-19 04:07:13 -06:00
|
|
|
--> $DIR/match_single_binding.rs:11:5
|
2020-01-15 00:56:56 -06:00
|
|
|
|
|
|
|
|
LL | / match (a, b, c) {
|
|
|
|
LL | | (x, y, z) => {
|
|
|
|
LL | | println!("{} {} {}", x, y, z);
|
|
|
|
LL | | },
|
|
|
|
LL | | }
|
2020-01-19 04:07:13 -06:00
|
|
|
| |_____^
|
2020-01-15 00:56:56 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::match-single-binding` implied by `-D warnings`
|
2020-01-19 04:07:13 -06:00
|
|
|
help: consider using `let` statement
|
|
|
|
|
|
|
|
|
LL | let (x, y, z) = (a, b, c);
|
|
|
|
LL | {
|
|
|
|
LL | println!("{} {} {}", x, y, z);
|
|
|
|
LL | }
|
|
|
|
|
|
2020-01-15 00:56:56 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|