mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
30 lines
699 B
Rust
30 lines
699 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 {
|
|
}
|
|
|
|
while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa {}
|
|
|
|
'b: for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in some_iter(arg1, arg2) {
|
|
// do smth
|
|
}
|
|
|
|
while let Some(i) = x.find('s')
|
|
{
|
|
x.update();
|
|
continue;
|
|
continue 'foo;
|
|
}
|
|
}
|