]> git.proxmox.com Git - rustc.git/blob - tests/coverage-map/status-quo/continue.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / coverage-map / status-quo / continue.rs
1 #![allow(unused_assignments, unused_variables)]
2
3 fn main() {
4 let is_true = std::env::args().len() == 1;
5
6 let mut x = 0;
7 for _ in 0..10 {
8 match is_true {
9 true => {
10 continue;
11 }
12 _ => {
13 x = 1;
14 }
15 }
16 x = 3;
17 }
18 for _ in 0..10 {
19 match is_true {
20 false => {
21 x = 1;
22 }
23 _ => {
24 continue;
25 }
26 }
27 x = 3;
28 }
29 for _ in 0..10 {
30 match is_true {
31 true => {
32 x = 1;
33 }
34 _ => {
35 continue;
36 }
37 }
38 x = 3;
39 }
40 for _ in 0..10 {
41 if is_true {
42 continue;
43 }
44 x = 3;
45 }
46 for _ in 0..10 {
47 match is_true {
48 false => {
49 x = 1;
50 }
51 _ => {
52 let _ = x;
53 }
54 }
55 x = 3;
56 }
57 for _ in 0..10 {
58 match is_true {
59 false => {
60 x = 1;
61 }
62 _ => {
63 break;
64 }
65 }
66 x = 3;
67 }
68 let _ = x;
69 }