title: How to concatenate token right after a variable within `quote!` macro?
body: <pre class="lang-rust prettyprint-override"><code>use quote::quote;
  
  fn main() {
      let name = "foo";
      let res = quote!(#name bar);
      println!("{:?}", res.to_string());
  }
  </code></pre>
  
  <p>The above code prints <code>"\"foo\" bar"</code>. Please try running it <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=bca5a157e92c39d673b34b585edc12ce" rel="nofollow noreferrer">here</a> on Rust Playground.</p>
  
  <p>How to adjust it to make the single ident out of the variable part and constant suffix?</p>
  
  <p>I want to use the <code>quote!</code> returned value in a derive macro. How to get rid of the double quote characters?</p>