]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/missing-private-fields-in-struct-literal.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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