minor: align with rustc on escaping characters in macro expansion

This commit is contained in:
Ryo Yoshida 2022-08-05 22:01:09 +09:00
parent 859d467276
commit 4d5873e92f
No known key found for this signature in database
GPG key ID: E25698A930586171
2 changed files with 4 additions and 4 deletions

View file

@ -295,13 +295,13 @@ fn test_concat_expand() {
#[rustc_builtin_macro]
macro_rules! concat {}
fn main() { concat!("foo", "r", 0, r#"bar"#, "\n", false, '\n'); }
fn main() { concat!("foo", "r", 0, r#"bar"#, "\n", false, '"', '\0'); }
"##,
expect![[r##"
#[rustc_builtin_macro]
macro_rules! concat {}
fn main() { "foor0bar\nfalse\n"; }
fn main() { "foor0bar\nfalse\"\u{0}"; }
"##]],
);
}