rust/src/test/run-pass/issue-1257.rs
2012-05-10 15:27:42 -07:00

9 lines
146 B
Rust

fn main () {
let mut line = "";
let mut i = 0;
while line != "exit" {
line = if i == 9 { "exit" } else { "notexit" };
i += 1;
}
}