rust/tests/target/loop.rs

22 lines
389 B
Rust
Raw Normal View History

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
'a: while loooooooooooooooooooooooooooooooooong_variable_name + another_value >
some_other_value {
}
while aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa > bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb {
}
2015-07-13 21:51:56 +02:00
}