Add an infinite loop construct
Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
This commit is contained in:
parent
4ffcb95974
commit
321fd80219
33 changed files with 208 additions and 122 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
use std;
|
||||
|
||||
fn test_break() { while true { let x: @int = break; } }
|
||||
fn test_break() { loop { let x: @int = break; } }
|
||||
|
||||
fn test_cont() { let i = 0; while i < 1 { i += 1; let x: @int = cont; } }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue