mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 01:55:03 +00:00
81f2e449d7
This should be properly addressed by #184, but requires a change to the rustc parser, so this patch just works around the issue.
29 lines
624 B
Rust
29 lines
624 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();
|
|
// FIXME #184
|
|
// continue;
|
|
// continue 'foo;
|
|
}
|
|
}
|