We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebb88a4 commit 4b66815Copy full SHA for 4b66815
tests/ui/for_loop.rs
@@ -571,3 +571,19 @@ mod issue_2496 {
571
unimplemented!()
572
}
573
574
+
575
+mod issue_1219 {
576
+ // potential false positive for explicit_counter_loop
577
+ pub fn test() {
578
+ let thing = 5;
579
+ let text = "banana";
580
+ let mut count = 0;
581
+ for ch in text.chars() {
582
+ if ch == 'a' {
583
+ continue;
584
+ }
585
+ count += 1
586
587
+ println!("{}", count);
588
589
+}
0 commit comments