rust/tests/ui/privacy/private-field-struct-construction-76077.stderr
2025-08-17 13:01:02 -04:00

11 lines
302 B
Plaintext

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