Skip to content

for-loop-bound vars not hygienic #15167

@jbclements

Description

@jbclements

This should signal an error:

#![feature(macro_rules)]

macro_rules! f(() => (n))

fn main() -> (){
    for n in range(0, 1) {
        println!("{}", f!());
    }
}

I've got a fix for this, I'm just adding this so that I have an issue number to attach to my test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions