Skip to content

Ident and raw_identifiers #140

Closed
Closed
@haraldh

Description

@haraldh

Is this supposed to work with rust-1.30, with rust-lang/rust#53236 merged ??

extern crate proc_macro2;
use proc_macro2::{Ident, Span};

fn main() {
    let _tname = Ident::new("r#enum", Span::call_site());
}

gives:

thread 'main' panicked at '"r#enum" is not a valid Ident'
[…]
   7: proc_macro2::stable::validate_term
             at […]/proc-macro2-0.4.20/src/stable.rs:580
[…]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions