]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/while-cont.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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 }