diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-09-18 21:41:37 -0700 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-09-19 10:52:59 -0700 |
| commit | 9cf271fe96b474d514b1052935db70c4056cf076 (patch) | |
| tree | 7a6fb31efeaa4de91317c16aca824153aaaf988c /src/test/run-pass/break.rs | |
| parent | 62b7f4d800325b46002c47d23b58a9f2b7fabb9b (diff) | |
De-mode vec::each() and many of the str iteration routines
Note that the method foo.each() is not de-moded, nor the other vec routines.
Diffstat (limited to 'src/test/run-pass/break.rs')
| -rw-r--r-- | src/test/run-pass/break.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/run-pass/break.rs b/src/test/run-pass/break.rs index 1b7a3a24649..57e72b43c0d 100644 --- a/src/test/run-pass/break.rs +++ b/src/test/run-pass/break.rs @@ -7,7 +7,7 @@ fn main() { loop { i += 1; if i == 20 { break; } } assert (i == 20); for vec::each(~[1, 2, 3, 4, 5, 6]) |x| { - if x == 3 { break; } assert (x <= 3); + if *x == 3 { break; } assert (*x <= 3); } i = 0; while i < 10 { i += 1; if i % 2 == 0 { loop; } assert (i % 2 != 0); } @@ -17,7 +17,7 @@ fn main() { if i >= 10 { break; } } for vec::each(~[1, 2, 3, 4, 5, 6]) |x| { - if x % 2 == 0 { loop; } - assert (x % 2 != 0); + if *x % 2 == 0 { loop; } + assert (*x % 2 != 0); } } |
