Skip to content

Typo? 3.1. Macros By Example / Path-Based Scope: m!(); // OK: Path-based lookup #1789

Open
@kuzminrobin

Description

@kuzminrobin

I suspect a typo.

Fragment of interest:

self::m!();
m!(); // OK: Path-based lookup finds m in the current module.

I suspect it must be:

self::m!(); // OK: Path-based lookup finds m in the current module.

i.e. the fragment m!(); must not be there.


I'm relatively new to Rust, still studying it. I can be wrong. But I have an intuitive described above suspicion of a typo. If that's not a typo then an extra explanation would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: MacrosLanguage CleanupImprovements to existing language which is correct but not clear, or missing examples, or the like.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions