mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-28 01:10:05 +08:00
20 lines
210 B
Rust
20 lines
210 B
Rust
|
fn foo(mut x: i32) {
|
||
|
while x > 0 {
|
||
|
x -= 1;
|
||
|
}
|
||
|
|
||
|
for i in 0..3 {
|
||
|
x += 1;
|
||
|
}
|
||
|
|
||
|
loop {
|
||
|
x += 1;
|
||
|
|
||
|
if x < 100 {
|
||
|
continue;
|
||
|
}
|
||
|
|
||
|
break;
|
||
|
}
|
||
|
}
|