Esteban Küber 4be07075b3 Tweak message on ADT with private fields building
When trying to create an inaccessible ADT due to private fields, handle
the case when no fields were passed.

```
error: cannot construct `Foo` with struct literal syntax due to private fields
  --> $DIR/issue-76077.rs:8:5
   |
LL |     foo::Foo {};
   |     ^^^^^^^^
   |
   = note: private field `you_cant_use_this_field` that was not provided
```
2023-11-29 18:11:57 +00:00
..
2023-11-28 23:17:28 +00:00
2023-11-24 21:04:51 +01:00
2023-11-24 21:04:51 +01:00
2023-11-24 21:04:51 +01:00
2023-11-24 21:04:51 +01:00
2023-11-29 03:58:29 +01:00
2023-11-24 21:04:51 +01:00
2023-11-25 23:58:52 +00:00
2023-11-24 21:04:51 +01:00
2023-11-24 14:32:05 +00:00