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

9 lines
182 B
Rust

// aux-build:cci_class_5.rs
extern crate cci_class_5;
use cci_class_5::kitties::cat;
fn main() {
let nyan : cat = cat(52, 99);
nyan.nap(); //~ ERROR method `nap` is private
}