]> git.lizzy.rs Git - rust.git/commitdiff
Fixing tests
authorAlex Crichton <alex@alexcrichton.com>
Sat, 1 Feb 2014 06:11:18 +0000 (22:11 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 1 Feb 2014 06:11:18 +0000 (22:11 -0800)
src/test/run-pass/const-enum-vec-repeat.rs
src/test/run-pass/vec-repeat-with-cast.rs

index 4ad4bbc4a8a57f15d4e8a1db07d20b067abc5f22..44b91fcee3c71ea03fb2c15b4795d6de0f46ce9c 100644 (file)
@@ -10,6 +10,6 @@
 
 enum State { ST_NULL, ST_WHITESPACE = 1 }
 
-fn main() {
+pub fn main() {
     ~[ST_NULL, ..(ST_WHITESPACE as uint)];
 }
index c28ddd2bcb511cff7756d4f8c25ab49f2bde7932..f5d09e308ba88783c9b47aa6b317b2970ceeb07a 100644 (file)
@@ -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]; }