Quantcast
Channel: error[E0277]: the trait bound `Vec: ToTokens` is not satisfied - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Teymour for error[E0277]: the trait bound `Vec: ToTokens` is not...

For some reason, quote::ToTokens isn't implemented for proc_macro2::TokenStream.New answerThis is achievable using the quote! macro's syntax:#[macro_use]extern crate quote;extern crate syn;extern crate...

View Article



error[E0277]: the trait bound `Vec: ToTokens` is not satisfied

I ran into this error and thought my very hacky workaround might be of use to someone.Suppose I have some code (playground) which looks like this:#[macro_use]extern crate quote;extern crate syn;extern...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images