rust/src/test/ui/privacy/private-struct-field-cross-crate.rs
2018-12-25 21:08:33 -07:00

10 lines
230 B
Rust

// aux-build:cci_class.rs
extern crate cci_class;
use cci_class::kitties::cat;
fn main() {
let nyan : cat = cat(52, 99);
assert_eq!(nyan.meows, 52);
//~^ ERROR field `meows` of struct `cci_class::kitties::cat` is private
}