This feels really stupid, but I can't for the heck of me figure out how to get a TokenStream
out of the quote::Tokens
that is given by quote!(foo)
. I get an error like
error[E0277]: the trait bound `proc_macro::TokenStream: std::convert::From<quote::Tokens>` is not satisfied
--> display-as-proc-macro/src/lib.rs:16:5
|
16 | TokenStream::from(s)
| ^^^^^^^^^^^^^^^^^ the trait `std::convert::From<quote::Tokens>` is not implemented for `proc_macro::TokenStream`
|
= help: the following implementations were found:
<proc_macro::TokenStream as std::convert::From<proc_macro::TokenTree>>
= note: required by `std::convert::From::from`
Any hints?