Skip to content

Define "anonymous struct" before using it in section 6.1 #2584

Closed
rust-lang/rust
#87312
@dariuswiles

Description

@dariuswiles

The text below listing 6-2 in section 6.1 states:
"Move includes an anonymous struct inside it."

I believe this is the first time the concept of an anonymous struct is discussed. I cannot find a definition in sections 5 to 5.3, which introduce structs.

I suggest either adding an explanation of anonymous structs to one of the structs sections; or changing the example code in listing 6-2 and its accompanying text so that it does not use an anonymous struct.

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