about summary refs log tree commit diff
path: root/tests/ui/privacy/private-field-struct-construction-76077.stderr
blob: 5131db72fe3bf2495374153b99a2c2896bc56257 (plain)
1
2
3
4
5
6
7
8
9
10
error: cannot construct `Foo` with struct literal syntax due to private fields
  --> $DIR/private-field-struct-construction-76077.rs:9:5
   |
LL |     foo::Foo {};
   |     ^^^^^^^^
   |
   = note: private field `you_cant_use_this_field` that was not provided

error: aborting due to 1 previous error