2015-07-13 21:51:56 +02:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
loop {
|
|
|
|
return some_val;
|
|
|
|
}
|
|
|
|
|
|
|
|
let x = loop {
|
|
|
|
do_forever();
|
|
|
|
};
|
|
|
|
|
2015-07-16 16:29:28 +02:00
|
|
|
'label: loop {
|
2015-07-13 21:51:56 +02:00
|
|
|
// Just comments
|
|
|
|
}
|
2015-07-16 16:29:28 +02:00
|
|
|
|
2017-07-26 16:30:58 +09:00
|
|
|
'a: while loooooooooooooooooooooooooooooooooong_variable_name + another_value > some_other_value
|
|
|
|
{
|
|
|
|
}
|
2015-07-16 16:29:28 +02:00
|
|
|
|
|
|
|
while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb {
|
|
|
|
}
|
2015-07-19 23:39:48 +02:00
|
|
|
|
2016-06-09 00:43:08 +09:00
|
|
|
while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa {
|
|
|
|
}
|
|
|
|
|
2017-07-26 16:30:58 +09:00
|
|
|
'b: for xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx in some_iter(arg1, arg2)
|
2017-06-12 16:01:41 +12:00
|
|
|
{
|
2015-07-19 23:39:48 +02:00
|
|
|
// do smth
|
|
|
|
}
|
|
|
|
|
|
|
|
while let Some(i) = x.find('s') {
|
|
|
|
x.update();
|
2015-08-16 16:43:59 +12:00
|
|
|
// FIXME #184
|
|
|
|
// continue;
|
|
|
|
// continue 'foo;
|
2015-07-19 23:39:48 +02:00
|
|
|
}
|
2015-07-13 21:51:56 +02:00
|
|
|
}
|