Open obsoleszenz opened 2 months ago
I want to create a Foo::Bartoken stream and am currently trying it like this:
Foo::Bar
let foo = format_ident!("Foo"); let bar = format_ident!("Bar"); quote! { #foo::#bar } but this results in a token stream of `Foo :: Bar` which the compiler doesn't accept.
You can do it with format_ident
format_ident
I want to create a
Foo::Bar
token stream and am currently trying it like this: