1
Fork 0
rust/tests/ui/for-loop-while/issue-1257.rs

12 lines
245 B
Rust
Raw Normal View History

//@ run-pass
//@ pretty-expanded FIXME #23616
pub fn main () {
2014-05-25 03:10:11 -07:00
let mut line = "".to_string();
2015-01-25 22:05:03 +01:00
let mut i = 0;
2014-05-25 03:10:11 -07:00
while line != "exit".to_string() {
line = if i == 9 { "exit".to_string() } else { "notexit".to_string() };
i += 1;
}
}