19b8598c09
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.
14 lines
180 B
Rust
14 lines
180 B
Rust
// xfail-test
|
|
// xfail-fast
|
|
|
|
// This is xfail'd because two errors are reported instead of one.
|
|
|
|
mod a {
|
|
priv fn f() {}
|
|
}
|
|
|
|
fn main() {
|
|
a::f(); //~ ERROR unresolved name
|
|
}
|
|
|