Skip to content

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

Closed
rust-lang/rust
#87312

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.

Activity

  1. limuyuan commented on Jul 19, 2021

    @limuyuan
    Contributor

    @carols10cents why closed? I also have the same concern.

  2. limuyuan commented on Jul 19, 2021

    @limuyuan
    Contributor

    @carols10cents why closed? I also have the same concern.

    I checked commits and found-
    This issue was already fixed in 07325bf

    Thank you Carol

  3. added a commit that references this issue on Jul 20, 2021
    b41936b
  4. added a commit that references this issue on Mar 11, 2024
    07325bf
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