Changed fn main to pub fn main

This commit is contained in:
Andreas Martens 2013-08-21 18:32:04 +02:00
parent 0f6dd53948
commit 5ed9f60a97

View File

@ -14,7 +14,7 @@ fn g(x: int) -> int { 2 * x }
static F: extern fn(int) -> int = f;
static mut G: extern fn(int) -> int = f;
fn main() {
pub fn main() {
assert_eq!(F(42), 42);
unsafe {
assert_eq!(G(42), 42);