@@ -13,7 +13,19 @@ LL | let blubx: i32;
1313 = help: to override `-D warnings` add `#[allow(clippy::similar_names)]`
1414
1515error: binding's name is too similar to existing binding
16- --> tests/ui/similar_names.rs:52:9
16+ --> tests/ui/similar_names.rs:51:9
17+ |
18+ LL | let cakes: i32;
19+ | ^^^^^
20+ |
21+ note: existing binding defined here
22+ --> tests/ui/similar_names.rs:50:9
23+ |
24+ LL | let cake: i32;
25+ | ^^^^
26+
27+ error: binding's name is too similar to existing binding
28+ --> tests/ui/similar_names.rs:53:9
1729 |
1830LL | let coke: i32;
1931 | ^^^^
@@ -25,40 +37,76 @@ LL | let cake: i32;
2537 | ^^^^
2638
2739error: binding's name is too similar to existing binding
28- --> tests/ui/similar_names.rs:71:9
40+ --> tests/ui/similar_names.rs:62:10
41+ |
42+ LL | (cheese1, 1) => {},
43+ | ^^^^^^^
44+ |
45+ note: existing binding defined here
46+ --> tests/ui/similar_names.rs:60:9
47+ |
48+ LL | let cheese: i32;
49+ | ^^^^^^
50+
51+ error: binding's name is too similar to existing binding
52+ --> tests/ui/similar_names.rs:64:10
53+ |
54+ LL | (cheese2, 2) => panic!(),
55+ | ^^^^^^^
56+ |
57+ note: existing binding defined here
58+ --> tests/ui/similar_names.rs:60:9
59+ |
60+ LL | let cheese: i32;
61+ | ^^^^^^
62+
63+ error: binding's name is too similar to existing binding
64+ --> tests/ui/similar_names.rs:74:9
2965 |
3066LL | let xyzeabc: i32;
3167 | ^^^^^^^
3268 |
3369note: existing binding defined here
34- --> tests/ui/similar_names.rs:69 :9
70+ --> tests/ui/similar_names.rs:72 :9
3571 |
3672LL | let xyz1abc: i32;
3773 | ^^^^^^^
3874
3975error: binding's name is too similar to existing binding
40- --> tests/ui/similar_names.rs:76 :9
76+ --> tests/ui/similar_names.rs:79 :9
4177 |
4278LL | let parsee: i32;
4379 | ^^^^^^
4480 |
4581note: existing binding defined here
46- --> tests/ui/similar_names.rs:74 :9
82+ --> tests/ui/similar_names.rs:77 :9
4783 |
4884LL | let parser: i32;
4985 | ^^^^^^
5086
5187error: binding's name is too similar to existing binding
52- --> tests/ui/similar_names.rs:102:16
88+ --> tests/ui/similar_names.rs:101:9
89+ |
90+ LL | let checked_expr: i32;
91+ | ^^^^^^^^^^^^
92+ |
93+ note: existing binding defined here
94+ --> tests/ui/similar_names.rs:100:9
95+ |
96+ LL | let checked_exp: i32;
97+ | ^^^^^^^^^^^
98+
99+ error: binding's name is too similar to existing binding
100+ --> tests/ui/similar_names.rs:109:16
53101 |
54102LL | bpple: sprang,
55103 | ^^^^^^
56104 |
57105note: existing binding defined here
58- --> tests/ui/similar_names.rs:101 :16
106+ --> tests/ui/similar_names.rs:108 :16
59107 |
60108LL | apple: spring,
61109 | ^^^^^^
62110
63- error: aborting due to 5 previous errors
111+ error: aborting due to 9 previous errors
64112
0 commit comments