]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/issue-79593.stderr
Auto merge of #106025 - matthiaskrgr:rollup-vz5rqah, r=matthiaskrgr
[rust.git] / src / test / ui / privacy / issue-79593.stderr
1 error[E0063]: missing field `private` in initializer of `Pub`
2   --> $DIR/issue-79593.rs:10:9
3    |
4 LL |         Pub {};
5    |         ^^^ missing `private`
6
7 error[E0063]: missing field `y` in initializer of `Enum`
8   --> $DIR/issue-79593.rs:12:9
9    |
10 LL |         Enum::Variant { x: () };
11    |         ^^^^^^^^^^^^^ missing `y`
12
13 error: cannot construct `Pub` with struct literal syntax due to private fields
14   --> $DIR/issue-79593.rs:18:5
15    |
16 LL |     foo::Pub {};
17    |     ^^^^^^^^
18    |
19    = note: ... and other private field `private` that was not provided
20
21 error[E0063]: missing field `y` in initializer of `Enum`
22   --> $DIR/issue-79593.rs:23:5
23    |
24 LL |     foo::Enum::Variant { x: () };
25    |     ^^^^^^^^^^^^^^^^^^ missing `y`
26
27 error[E0063]: missing fields `x` and `y` in initializer of `Enum`
28   --> $DIR/issue-79593.rs:25:5
29    |
30 LL |     foo::Enum::Variant { };
31    |     ^^^^^^^^^^^^^^^^^^ missing `x` and `y`
32
33 error: aborting due to 5 previous errors
34
35 For more information about this error, try `rustc --explain E0063`.