diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-25 00:43:37 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-25 00:43:37 -0700 |
| commit | 30862a64c29985b044d9bf6f74fcf1394bc145c7 (patch) | |
| tree | 712da0df6bd5e3661431ec069fa814d048dc703a /src/test/run-pass/tuple-struct-constructor-pointer.rs | |
| parent | 10a583ce1ac28a8cbf34b0f4274285f33bdfce29 (diff) | |
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.
Diffstat (limited to 'src/test/run-pass/tuple-struct-constructor-pointer.rs')
| -rw-r--r-- | src/test/run-pass/tuple-struct-constructor-pointer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-pass/tuple-struct-constructor-pointer.rs b/src/test/run-pass/tuple-struct-constructor-pointer.rs index dbb5db649ef..e51e6ffd52a 100644 --- a/src/test/run-pass/tuple-struct-constructor-pointer.rs +++ b/src/test/run-pass/tuple-struct-constructor-pointer.rs @@ -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)); |
