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]; }