mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-23 22:14:15 +00:00
12 lines
227 B
Rust
12 lines
227 B
Rust
//@ run-pass
|
|
// Issue #825: Should recheck the loop condition after continuing
|
|
pub fn main() {
|
|
let mut i = 1;
|
|
while i > 0 {
|
|
assert!((i > 0));
|
|
println!("{}", i);
|
|
i -= 1;
|
|
continue;
|
|
}
|
|
}
|