}
fn test(a: A, b: inner::A, c: inner::B, d: xc::A, e: xc::B) {
- //~^ ERROR: type `A` is private
+ //~^ ERROR: struct `A` is private
//~^^ ERROR: struct `A` is private
a.a;
c.a;
c.b; //~ ERROR: field `b` of struct `inner::B` is private
- d.a; //~ ERROR: field `a` of struct `struct_field_privacy::A` is private
+ d.a; //~ ERROR: field `a` of struct `xc::A` is private
d.b;
e.a;
- e.b; //~ ERROR: field `b` of struct `struct_field_privacy::B` is private
+ e.b; //~ ERROR: field `b` of struct `xc::B` is private
}
fn main() {}