]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/missing-private-fields-in-struct-literal.stderr
Rollup merge of #100789 - compiler-errors:issue-99662, r=spastorino
[rust.git] / src / test / ui / typeck / missing-private-fields-in-struct-literal.stderr
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