rust/src/test/compile-fail/private-struct-field-cross-crate.rs
2012-09-04 14:50:46 -07:00

10 lines
200 B
Rust

// xfail-fast
// aux-build:cci_class.rs
use cci_class;
import cci_class::kitties::*;
fn main() {
let nyan : cat = cat(52u, 99);
assert (nyan.meows == 52u); //~ ERROR field `meows` is private
}