rust/tests/target/loop.rs
2015-07-19 23:43:32 +02:00

31 lines
670 B
Rust

fn main() {
loop {
return some_val;
}
let x = loop {
do_forever();
};
'label: loop {
// Just comments
}
'a: while loooooooooooooooooooooooooooooooooong_variable_name + another_value >
some_other_value {
}
while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb {
}
'b: for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in some_iter(arg1,
arg2) {
// do smth
}
while let Some(i) = x.find('s') {
x.update();
}
}