]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/resolve/privacy-struct-ctor.stderr
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / resolve / privacy-struct-ctor.stderr
index bf1d6753cc1d0aaae11281d99f9fca4cd8519ff6..ada053014ef5eb38e064fcf7c2c7c54ab94d6d09 100644 (file)
@@ -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