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.
This commit is contained in:
Alex Crichton
2013-09-25 00:43:37 -07:00
parent 10a583ce1a
commit 30862a64c2
137 changed files with 145 additions and 143 deletions

View File

@@ -13,7 +13,7 @@ struct Foo(int);
#[deriving(Eq)]
struct Bar(int, int);
fn main() {
pub fn main() {
let f: extern fn(int) -> Foo = Foo;
let g: extern fn(int, int) -> Bar = Bar;
assert_eq!(f(42), Foo(42));