diff options
Diffstat (limited to 'src/test/run-pass/foreach-external-iterators-nested.rs')
| -rw-r--r-- | src/test/run-pass/foreach-external-iterators-nested.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/foreach-external-iterators-nested.rs b/src/test/run-pass/foreach-external-iterators-nested.rs index 6acfbc95317..3817e1b0eda 100644 --- a/src/test/run-pass/foreach-external-iterators-nested.rs +++ b/src/test/run-pass/foreach-external-iterators-nested.rs @@ -13,8 +13,8 @@ pub fn main() { let y = [2; 100]; let mut p = 0; let mut q = 0; - for i in &x[] { - for j in &y[] { + for i in &x[..] { + for j in &y[..] { p += *j; } q += *i + p; |
