Skip to content

Module import docs incomplete in book #21589

Closed
@Axylos

Description

@Axylos

The relevant portions of the alpha Book reference on module imports do not mention the use of :: as a prefix for an import. Specifically, the path in a use line refers to the absolute path, but any other mentions in the module are relative to that path; however, if you prefix a path inside the module with :: then it would refer to the absolute path. Could we add a brief paragraph or few sentences to the book covering this distinction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions