diff options
Diffstat (limited to 'src/test/ui/for-loop-while/foreach-external-iterators-break.rs')
-rw-r--r-- | src/test/ui/for-loop-while/foreach-external-iterators-break.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/for-loop-while/foreach-external-iterators-break.rs b/src/test/ui/for-loop-while/foreach-external-iterators-break.rs deleted file mode 100644 index 7de6a4f8a..000000000 --- a/src/test/ui/for-loop-while/foreach-external-iterators-break.rs +++ /dev/null @@ -1,13 +0,0 @@ -// run-pass - -pub fn main() { - let x = [1; 100]; - let mut y = 0; - for i in &x[..] { - if y > 10 { - break; - } - y += *i; - } - assert_eq!(y, 11); -} |