Closed Houtamelo closed 8 months ago
Example case: This test does not pass due to panicking in the assertion.
#[test] fn show_quote_bug() { let literal = r#"$player_name == "Alice""#; let from_quote = quote::ToTokens::into_token_stream(literal).to_string(); let from_str = proc_macro2::TokenStream::from_str(literal).unwrap().to_string(); assert_eq!(from_quote, from_str); }
Yes, those are intentionally different operations.
Example case: This test does not pass due to panicking in the assertion.