diff options
Diffstat (limited to 'src/test/ui/iterators/iter-range.rs')
-rw-r--r-- | src/test/ui/iterators/iter-range.rs | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/iterators/iter-range.rs b/src/test/ui/iterators/iter-range.rs deleted file mode 100644 index 993d93790..000000000 --- a/src/test/ui/iterators/iter-range.rs +++ /dev/null @@ -1,14 +0,0 @@ -// run-pass - - -fn range_<F>(a: isize, b: isize, mut it: F) where F: FnMut(isize) { - assert!((a < b)); - let mut i: isize = a; - while i < b { it(i); i += 1; } -} - -pub fn main() { - let mut sum: isize = 0; - range_(0, 100, |x| sum += x ); - println!("{}", sum); -} |