Logo
Explore Help
Register Sign In
rust-lang/rust
1
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

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
Powered by Gitea Version: 1.24.6 Page: 304ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API