diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-25 00:43:37 -0700 | 
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-25 00:43:37 -0700 | 
| commit | 30862a64c29985b044d9bf6f74fcf1394bc145c7 (patch) | |
| tree | 712da0df6bd5e3661431ec069fa814d048dc703a /src/test/run-pass/foreach-external-iterators-loop.rs | |
| parent | 10a583ce1ac28a8cbf34b0f4274285f33bdfce29 (diff) | |
| download | rust-30862a64c29985b044d9bf6f74fcf1394bc145c7.tar.gz rust-30862a64c29985b044d9bf6f74fcf1394bc145c7.zip | |
Fix run-pass tests to have 'pub fn main'
This is required by the check-fast target because each test is slurped up into a submodule.
Diffstat (limited to 'src/test/run-pass/foreach-external-iterators-loop.rs')
| -rw-r--r-- | src/test/run-pass/foreach-external-iterators-loop.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/test/run-pass/foreach-external-iterators-loop.rs b/src/test/run-pass/foreach-external-iterators-loop.rs index c999d810ec6..ced538e163e 100644 --- a/src/test/run-pass/foreach-external-iterators-loop.rs +++ b/src/test/run-pass/foreach-external-iterators-loop.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn main() { +pub fn main() { let x = [1,..100]; let mut y = 0; for (n,i) in x.iter().enumerate() { | 
