summaryrefslogtreecommitdiffstats
path: root/src/test/ui/typeck/missing-private-fields-in-struct-literal.stderr
blob: 234110f31f79c5a41e4e311615f39bd7e4923a63 (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 previous error