rust/tests/source/loop.rs

17 lines
353 B
Rust
Raw Normal View History

2015-07-13 19:51:56 +00:00
fn main() {
loop
{ return some_val;}
let x = loop { do_forever(); };
2015-07-16 14:29:28 +00:00
'label : loop {
2015-07-13 19:51:56 +00:00
// Just comments
}
2015-07-16 14:29:28 +00:00
'a: while loooooooooooooooooooooooooooooooooong_variable_name + another_value > some_other_value{}
while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb {
}
2015-07-13 19:51:56 +00:00
}