rust/tests/source/loop.rs

12 lines
135 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(); };
loop {
// Just comments
}
}