Skip to content

.. notation for structs is not covered in Rust book or reference #23198

Description

@frewsxcv

For example:

struct MyStruct {
    pub a: i64,
    pub b: i64,
}

fn main() {
    let existing = MyStruct {a: 50, b: 50};
    MyStruct {
        a: 100,
        ..existing
    };
}

The .. notation does not appear in the book or the reference

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions