2020-12-12 03:52:51 +00:00
|
|
|
error[E0063]: missing field `private` in initializer of `Pub`
|
|
|
|
--> $DIR/issue-79593.rs:10:9
|
|
|
|
|
|
|
|
|
LL | Pub {};
|
|
|
|
| ^^^ missing `private`
|
|
|
|
|
|
|
|
error[E0063]: missing field `y` in initializer of `Enum`
|
|
|
|
--> $DIR/issue-79593.rs:12:9
|
|
|
|
|
|
|
|
|
LL | Enum::Variant { x: () };
|
|
|
|
| ^^^^^^^^^^^^^ missing `y`
|
|
|
|
|
2022-06-20 07:29:05 +00:00
|
|
|
error: cannot construct `Pub` with struct literal syntax due to private fields
|
2020-12-12 03:52:51 +00:00
|
|
|
--> $DIR/issue-79593.rs:18:5
|
|
|
|
|
|
|
|
|
LL | foo::Pub {};
|
|
|
|
| ^^^^^^^^
|
2022-06-20 07:29:05 +00:00
|
|
|
|
|
2023-11-29 18:11:57 +00:00
|
|
|
= note: private field `private` that was not provided
|
2020-12-12 03:52:51 +00:00
|
|
|
|
|
|
|
error[E0063]: missing field `y` in initializer of `Enum`
|
|
|
|
--> $DIR/issue-79593.rs:23:5
|
|
|
|
|
|
|
|
|
LL | foo::Enum::Variant { x: () };
|
|
|
|
| ^^^^^^^^^^^^^^^^^^ missing `y`
|
|
|
|
|
2021-02-20 17:32:02 +00:00
|
|
|
error[E0063]: missing fields `x` and `y` in initializer of `Enum`
|
2020-12-12 03:52:51 +00:00
|
|
|
--> $DIR/issue-79593.rs:25:5
|
|
|
|
|
|
|
|
|
LL | foo::Enum::Variant { };
|
2021-02-20 17:32:02 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ missing `x` and `y`
|
2020-12-12 03:52:51 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0063`.
|