Changed fn main
to pub fn main
This commit is contained in:
parent
0f6dd53948
commit
5ed9f60a97
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user