rust/src/test/compile-fail/private-item-simple.rs
Patrick Walton 19b8598c09 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:56:47 -07:00

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
}