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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user