diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-09 16:11:56 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-03-09 16:40:58 -0800 |
| commit | 321fd80219e024cabb7ee539e701bc6b4a258751 (patch) | |
| tree | a0dc81403ffd175f75c704e1a26765339b63907a /src/test/compile-fail/while-loop-constraints.rs | |
| parent | 4ffcb959744194413ca20223274d2c351ad7686c (diff) | |
| download | rust-321fd80219e024cabb7ee539e701bc6b4a258751.tar.gz rust-321fd80219e024cabb7ee539e701bc6b4a258751.zip | |
Add an infinite loop construct
Add a loop {} construct for infinite loops, and use it in test
cases. See #1906 for details.
Diffstat (limited to 'src/test/compile-fail/while-loop-constraints.rs')
| -rw-r--r-- | src/test/compile-fail/while-loop-constraints.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/compile-fail/while-loop-constraints.rs b/src/test/compile-fail/while-loop-constraints.rs index 58757c8bfdd..38c1d471593 100644 --- a/src/test/compile-fail/while-loop-constraints.rs +++ b/src/test/compile-fail/while-loop-constraints.rs @@ -3,11 +3,11 @@ fn main() { let y: int = 42; let x: int; - while true { + loop { log(debug, y); - while true { - while true { - while true { x <- y; } + loop { + loop { + loop { x <- y; } } } } |
