summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/private-method-cross-crate.rs
blob: 4da44e0682be909d9eb9c2e6f48a2b6f3919defa (plain)
1
2
3
4
5
6
7
8
// 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
}