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