Skip to content

stringify! on a ty macro value produces "an interpolated type" #8709

Closed
@chris-morgan

Description

@chris-morgan

Minimal test case:

macro_rules! sty(
    ($t:ty)=>(stringify!($t))
)
fn main() {
    println(sty!(~str));
}

Expected output:

~str

Actual output:

an interpolated type

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