about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/osstring-to-string.js
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-11-29 18:11:57 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-11-29 18:11:57 +0000
commit4be07075b3651a69f05b9b9f16312fe3a8cf21fd (patch)
tree9845fbdaeb599b2b08807201c7dc54101dc57ccf /tests/rustdoc-js-std/osstring-to-string.js
parentabe34e9ab14c0a194152b4f9acc3dcbb000f3e98 (diff)
downloadrust-4be07075b3651a69f05b9b9f16312fe3a8cf21fd.tar.gz
rust-4be07075b3651a69f05b9b9f16312fe3a8cf21fd.zip
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
```
Diffstat (limited to 'tests/rustdoc-js-std/osstring-to-string.js')
0 files changed, 0 insertions, 0 deletions