Skip to content

Commit

Permalink
Changed fn main to pub fn main
Browse files Browse the repository at this point in the history
  • Loading branch information
bytwise committed Aug 21, 2013
1 parent 0f6dd53 commit 5ed9f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/run-pass/static-function-pointer.rs
Expand Up @@ -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);
Expand Down

5 comments on commit 5ed9f60

@bors
Copy link
Contributor

@bors bors commented on 5ed9f60 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at bytwise@5ed9f60

@bors
Copy link
Contributor

@bors bors commented on 5ed9f60 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging bytewiseand/rust/static-fn-ptr = 5ed9f60 into auto

@bors
Copy link
Contributor

@bors bors commented on 5ed9f60 Aug 21, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bytewiseand/rust/static-fn-ptr = 5ed9f60 merged ok, testing candidate = 9feaf1d

@bors
Copy link
Contributor

@bors bors commented on 5ed9f60 Aug 22, 2013

@bors
Copy link
Contributor

@bors bors commented on 5ed9f60 Aug 22, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 9feaf1d

Please sign in to comment.