X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fcompile-fail%2Fstruct-field-privacy.rs;h=2ff48b73e294c415bcb02f51f05046d8dbb02f95;hb=46dcffd05b46e62c27629f4231fc794e94e614a8;hp=667e944f92c5627c5888f430fff88d75b61f37fa;hpb=87ed884a9c3471299609da6c46bab142db388717;p=rust.git diff --git a/src/test/compile-fail/struct-field-privacy.rs b/src/test/compile-fail/struct-field-privacy.rs index 667e944f92c..2ff48b73e29 100644 --- a/src/test/compile-fail/struct-field-privacy.rs +++ b/src/test/compile-fail/struct-field-privacy.rs @@ -8,9 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// aux-build:struct-field-privacy.rs +// aux-build:struct_field_privacy.rs -extern crate "struct-field-privacy" as xc; +extern crate struct_field_privacy as xc; struct A { a: isize, @@ -28,7 +28,7 @@ pub struct B { } 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; @@ -37,11 +37,11 @@ fn test(a: A, b: inner::A, c: inner::B, d: xc::A, e: xc::B) { 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() {}