diff options
| author | Ulrik Sverdrup <root@localhost> | 2015-02-05 17:58:30 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <root@localhost> | 2015-02-05 18:09:12 +0100 |
| commit | 7d527fa96b92bca102fdc77d3b07f804c384138b (patch) | |
| tree | 219556c17ddd1f9a41dd7cc668392bb0d8b144c3 /src/test/run-pass/foreach-external-iterators.rs | |
| parent | 75239142a8271895775d69ef50037b0162cdcd6e (diff) | |
| download | rust-7d527fa96b92bca102fdc77d3b07f804c384138b.tar.gz rust-7d527fa96b92bca102fdc77d3b07f804c384138b.zip | |
Implement pretty-printing of `..` and update tests.
Update tests to change all `&expr[]` to `&expr[..]` to make sure pretty printing passes.
Diffstat (limited to 'src/test/run-pass/foreach-external-iterators.rs')
| -rw-r--r-- | src/test/run-pass/foreach-external-iterators.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/foreach-external-iterators.rs b/src/test/run-pass/foreach-external-iterators.rs index 2f154be659d..8403a1669ff 100644 --- a/src/test/run-pass/foreach-external-iterators.rs +++ b/src/test/run-pass/foreach-external-iterators.rs @@ -11,7 +11,7 @@ pub fn main() { let x = [1; 100]; let mut y = 0; - for i in &x[] { + for i in &x[..] { y += *i } assert!(y == 100); |
