We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
fn main
pub fn main
1 parent 0f6dd53 commit 5ed9f60Copy full SHA for 5ed9f60
src/test/run-pass/static-function-pointer.rs
@@ -14,7 +14,7 @@ fn g(x: int) -> int { 2 * x }
14
static F: extern fn(int) -> int = f;
15
static mut G: extern fn(int) -> int = f;
16
17
-fn main() {
+pub fn main() {
18
assert_eq!(F(42), 42);
19
unsafe {
20
assert_eq!(G(42), 42);
0 commit comments