This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
2
Packages
Projects
Releases
Wiki
Activity
Files
901b340c1f5d208561d4261cc3ee634973b35326
rust
/
tests
/
ui
/
privacy
/
private-item-simple.rs
8 lines
85 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Implement "priv" for simple items. Inherited privacy doesn't work yet. This probably requires a snapshot since it won't be backwards compatible. Additionally, two errors are printed instead of one. For this reason the test is XFAIL'd.
2012-08-17 17:55:34 -07:00
mod
a
{
Fix fallout
2013-08-07 23:20:06 -04:00
fn
f
(
)
{
}
rustc: Implement "priv" for simple items. Inherited privacy doesn't work yet. This probably requires a snapshot since it won't be backwards compatible. Additionally, two errors are printed instead of one. For this reason the test is XFAIL'd.
2012-08-17 17:55:34 -07:00
}
fn
main
(
)
{
Fix existing privacy/visibility violations This commit fixes all of the fallout of the previous commit which is an attempt to refine privacy. There were a few unfortunate leaks which now must be plugged, and the most horrible one is the current `shouldnt_be_public` module now inside `std::rt`. I think that this either needs a slight reorganization of the runtime, or otherwise it needs to just wait for the external users of these modules to get replaced with their `rt` implementations. Other fixes involve making things pub which should be pub, and otherwise updating error messages that now reference privacy instead of referencing an "unresolved name" (yay!).
2013-10-05 14:44:37 -07:00
a
::
f
(
)
;
//~ ERROR function `f` is private
rustc: Implement "priv" for simple items. Inherited privacy doesn't work yet. This probably requires a snapshot since it won't be backwards compatible. Additionally, two errors are printed instead of one. For this reason the test is XFAIL'd.
2012-08-17 17:55:34 -07:00
}
Reference in New Issue
Copy Permalink