X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Fui%2Fresolve%2Fprivacy-struct-ctor.stderr;h=ada053014ef5eb38e064fcf7c2c7c54ab94d6d09;hb=ca6798ab073c4f2358f2577e7258108099f29144;hp=bf1d6753cc1d0aaae11281d99f9fca4cd8519ff6;hpb=65eb381dec051e31d1fb17a5a7629bdee1eb9922;p=rust.git diff --git a/src/test/ui/resolve/privacy-struct-ctor.stderr b/src/test/ui/resolve/privacy-struct-ctor.stderr index bf1d6753cc1..ada053014ef 100644 --- a/src/test/ui/resolve/privacy-struct-ctor.stderr +++ b/src/test/ui/resolve/privacy-struct-ctor.stderr @@ -33,8 +33,11 @@ error[E0423]: expected value, found struct `xcrate::S` LL | xcrate::S; | ^^^^^^^^^ constructor is not visible here due to private fields | - = note: this tuple struct exists but is inaccessible: - m::S +note: tuple struct `m::S` exists but is inaccessible + --> $DIR/privacy-struct-ctor.rs:6:5 + | +LL | pub struct S(u8); + | ^^^^^^^^^^^^^^^^^ not accessible error[E0603]: tuple struct constructor `Z` is private --> $DIR/privacy-struct-ctor.rs:18:12