quote
quote copied to clipboard
How to add b prefix?
Seems b is not a valid literal prefix:
struct S {
pub a: u32,
}
let ident = format_ident!("something");
quote! {
match #ident {
b stringify!(#ident) => {} // <- b"something" => {}
_ => {}
}
}