Skip to content

Allow interpolated paths after use during macro expansion. #10415

Closed
@brendanzab

Description

@brendanzab
#![feature(macro_rules)]

macro_rules! use_path(($p:path) => (use $p;))

use_path!(std::uint)

fn main() {
    let _ = uint::max_value;
}
<anon>:3:42: 3:43 error: expected ident, found `std::uint`
<anon>:3 macro_rules! use_path(($p:path) => (use $p;))
                                                  ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)A-syntaxextArea: Syntax extensions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions