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
1
Packages
Projects
Releases
Wiki
Activity
Files
12c32e944d3dbadb6a114a6e0bc51b065b4f42c1
rust
/
src
/
test
/
compile-fail
/
private-item-simple.rs
10 lines
106 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
{
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
2012-09-21 18:10:45 -07:00
#[
legacy_exports
]
;
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
priv
fn
f
(
)
{
}
}
fn
main
(
)
{
a
::
f
(
)
;
//~ ERROR unresolved name
}
Reference in New Issue
Copy Permalink