mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-02 21:17:39 +00:00
![]() When a struct definition has default field values, and the use struct ctor has missing field, if all those missing fields have defaults suggest `..`: ``` error[E0063]: missing fields `field1` and `field2` in initializer of `S` --> $DIR/non-exhaustive-ctor.rs:16:13 | LL | let _ = S { field: () }; | ^ missing `field1` and `field2` | help: all remaining fields have defaults, use `..` | LL | let _ = S { field: (), .. }; | ++++ ``` |
||
---|---|---|
.. | ||
auxiliary | ||
empty-struct.rs | ||
empty-struct.stderr | ||
failures.rs | ||
failures.stderr | ||
invalid-const.rs | ||
invalid-const.stderr | ||
non-exhaustive-ctor.disabled.stderr | ||
non-exhaustive-ctor.enabled.fixed | ||
non-exhaustive-ctor.enabled.stderr | ||
non-exhaustive-ctor.rs | ||
support.rs | ||
use-normalized-ty-for-default-struct-value.rs | ||
visibility.rs | ||
visibility.stderr |