rust/src/test/run-pass/break-value.rs
Tim Chevalier 321fd80219 Add an infinite loop construct
Add a loop {} construct for infinite loops, and use it in test
cases. See #1906 for details.
2012-03-09 16:40:58 -08:00

4 lines
75 B
Rust

fn int_id(x: int) -> int { ret x; }
fn main() { loop { int_id(break); } }