]> 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 e5d6f7e9e24f0627091909bfa437fd67acf17a42..ada053014ef5eb38e064fcf7c2c7c54ab94d6d09 100644 (file)
@@ -33,10 +33,11 @@ error[E0423]: expected value, found struct `xcrate::S`
 LL |     xcrate::S;
    |     ^^^^^^^^^ constructor is not visible here due to private fields
    |
-help: consider importing this tuple struct instead
-   |
-LL | use 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