diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-01-31 22:11:18 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-31 22:11:18 -0800 |
| commit | a67a3b7749c9a0544b2fe69338c17c6314be935d (patch) | |
| tree | 454a14962add2bfc63aa8c0beff080daf313a15e | |
| parent | b59895847ea7decdd979dc3d67c3d0c7e0bf119d (diff) | |
| download | rust-a67a3b7749c9a0544b2fe69338c17c6314be935d.tar.gz rust-a67a3b7749c9a0544b2fe69338c17c6314be935d.zip | |
Fixing tests
| -rw-r--r-- | src/test/run-pass/const-enum-vec-repeat.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/vec-repeat-with-cast.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/run-pass/const-enum-vec-repeat.rs b/src/test/run-pass/const-enum-vec-repeat.rs index 4ad4bbc4a8a..44b91fcee3c 100644 --- a/src/test/run-pass/const-enum-vec-repeat.rs +++ b/src/test/run-pass/const-enum-vec-repeat.rs @@ -10,6 +10,6 @@ enum State { ST_NULL, ST_WHITESPACE = 1 } -fn main() { +pub fn main() { ~[ST_NULL, ..(ST_WHITESPACE as uint)]; } diff --git a/src/test/run-pass/vec-repeat-with-cast.rs b/src/test/run-pass/vec-repeat-with-cast.rs index c28ddd2bcb5..f5d09e308ba 100644 --- a/src/test/run-pass/vec-repeat-with-cast.rs +++ b/src/test/run-pass/vec-repeat-with-cast.rs @@ -8,4 +8,4 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -fn main() { let _a = [0, ..1 as uint]; } +pub fn main() { let _a = [0, ..1 as uint]; } |
