Files
rust/tests/ui/issues
Matthias Krüger 13ded66513 Rollup merge of #118453 - estebank:priv-fields, r=compiler-errors
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-30 09:28:25 +01:00
..
2023-10-28 23:11:03 -07:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-09-10 23:06:14 +02:00
2023-11-16 17:00:23 +00:00
2023-10-28 23:11:03 -07:00
2023-11-16 17:00:23 +00:00
2023-10-28 23:11:03 -07:00
2023-10-28 23:11:03 -07:00
2023-11-16 17:00:23 +00:00
2023-10-28 23:11:03 -07:00
2023-07-03 09:12:15 +02:00
2023-10-28 23:11:03 -07:00
2023-10-28 23:11:03 -07:00
2023-10-28 23:11:03 -07:00
2023-10-04 19:51:43 +00:00
2023-10-04 19:51:43 +00:00
2023-06-26 08:56:32 +00:00
2023-10-28 23:11:03 -07:00
2023-11-24 21:04:51 +01:00