diff options
| author | bors <bors@rust-lang.org> | 2013-09-25 00:55:53 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-25 00:55:53 -0700 |
| commit | 45311846145a39e6b5755a0740d53ac4ea3183a4 (patch) | |
| tree | 0014edaa67fb5571cf4230df161807908c71d9fe /src/test/run-pass/tuple-struct-constructor-pointer.rs | |
| parent | dad32f703d3df22f4d6b021c23cf2c08ae0f3d66 (diff) | |
| parent | 30862a64c29985b044d9bf6f74fcf1394bc145c7 (diff) | |
| download | rust-45311846145a39e6b5755a0740d53ac4ea3183a4.tar.gz rust-45311846145a39e6b5755a0740d53ac4ea3183a4.zip | |
auto merge of #9432 : alexcrichton/rust/correct-item-visibility, r=pcwalton
This fixes private statics and functions from being usable cross-crates, along with some bad privacy error messages. This is a reopening of #8365 with all the privacy checks in privacy.rs instead of resolve.rs (where they should be anyway). These maps of exported items will hopefully get used for generating documentation by rustdoc Closes #8592
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)); |
