rust/tests/ui/privacy/restricted
Esteban Küber deef3ebaec Emit a single privacy error for multiple fields on the same struct expression
Collect all unreachable fields in a single struct literal struct and emit a single error, instead of one error per private field.

```
error[E0451]: fields `beta` and `gamma` of struct `Alpha` are private
  --> $DIR/visibility.rs:18:13
   |
LL |     let _x = Alpha {
   |              ----- in this type
LL |         beta: 0,
   |         ^^^^^^^ private field
LL |         ..
   |         ^^ field `gamma` is private
```
2025-01-18 20:33:15 +00:00
..
auxiliary Move /src/test to /tests 2023-01-11 09:32:08 +00:00
lookup-ignores-private.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
private-in-public.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
relative-2018.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
relative-2018.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
struct-literal-field.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
struct-literal-field.stderr Emit a single privacy error for multiple fields on the same struct expression 2025-01-18 20:33:15 +00:00
test.rs Do not use question as label 2024-07-24 21:03:27 +00:00
test.stderr Structured suggestion for extern crate foo when foo isn't resolved in import 2024-07-29 23:49:51 +00:00