summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/private-struct-field-cross-crate.rs
blob: 301cd37b76cdc1bb3ff08e93296c11b7929dc5bf (plain)
1
2
3
4
5
6
7
8
9
// 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 `cat` is private
}