blob: 003eaa405924a4e8ca401e50345d4cc230b050f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
error: cannot construct `S` with struct literal syntax due to private fields
--> $DIR/missing-private-fields-in-struct-literal.rs:13:13
|
LL | let _ = m::S {
| ^^^^
LL | visible: true,
LL | a: (),
| ----- private field
LL | b: (),
| ----- private field
|
= note: ...and other private fields `c`, `d` and `e` that were not provided
error: aborting due to 1 previous error
|