]> git.proxmox.com Git - rustc.git/blob - tests/ui/for-loop-while/while-cont.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / for-loop-while / while-cont.rs
1 // run-pass
2 // Issue #825: Should recheck the loop condition after continuing
3 pub fn main() {
4 let mut i = 1;
5 while i > 0 {
6 assert!((i > 0));
7 println!("{}", i);
8 i -= 1;
9 continue;
10 }
11 }