rust/tests/ui/match_single_binding.stderr
ThibsG 3445d41f07 Add new lint: match with a single binding statement
- Lint name: MATCH_SINGLE_BINDING
2020-02-04 01:06:16 +01:00

15 lines
413 B
Plaintext

error: this match could be written as a `let` statement
--> $DIR/match_single_binding.rs:9:5
|
LL | / match (a, b, c) {
LL | | (x, y, z) => {
LL | | println!("{} {} {}", x, y, z);
LL | | },
LL | | }
| |_____^ help: try this: `let (x, y, z) = (a, b, c);`
|
= note: `-D clippy::match-single-binding` implied by `-D warnings`
error: aborting due to previous error