Skip to content

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

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.

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

    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