blob: 841c091bd5cad43216bef6f4c07c4d3f93facafe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
### What it does
Checks for overlapping match arms.
### Why is this bad?
It is likely to be an error and if not, makes the code
less obvious.
### Example
```
let x = 5;
match x {
1..=10 => println!("1 ... 10"),
5..=15 => println!("5 ... 15"),
_ => (),
}
```
|