]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/match_overlapping_arm.txt
Rollup merge of #101614 - compiler-errors:rpitit-eq, r=jackh726
[rust.git] / src / tools / clippy / src / docs / match_overlapping_arm.txt
1 ### What it does
2 Checks for overlapping match arms.
3
4 ### Why is this bad?
5 It is likely to be an error and if not, makes the code
6 less obvious.
7
8 ### Example
9 ```
10 let x = 5;
11 match x {
12     1..=10 => println!("1 ... 10"),
13     5..=15 => println!("5 ... 15"),
14     _ => (),
15 }
16 ```