LL | Enum::Variant { x: () };
| ^^^^^^^^^^^^^ missing `y`
-error: cannot construct `Pub` with struct literal syntax due to inaccessible fields
+error: cannot construct `Pub` with struct literal syntax due to private fields
--> $DIR/issue-79593.rs:18:5
|
LL | foo::Pub {};
| ^^^^^^^^
+ |
+note: missing field `private` is private
+ --> $DIR/issue-79593.rs:2:22
+ |
+LL | pub struct Pub { private: () }
+ | ^^^^^^^^^^^
error[E0063]: missing field `y` in initializer of `Enum`
--> $DIR/issue-79593.rs:23:5