Skip to content

Commit 8e8b6cd

Browse files
committed
ensure escape is correct
1 parent 79b5b38 commit 8e8b6cd

File tree

1 file changed

+1
-0
lines changed
  • tests/ui/proc-macro/auxiliary/api

1 file changed

+1
-0
lines changed

tests/ui/proc-macro/auxiliary/api/parse.rs

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fn test_display_literal() {
3131
assert_eq!(Literal::character('\u{1}').to_string(), "'\\u{1}'");
3232

3333
assert_eq!(Literal::byte_character(b'a').to_string(), "b'a'");
34+
assert_eq!(Literal::byte_character(0).to_string(), "b'\\x00'");
3435
}
3536

3637
fn test_parse_literal() {

0 commit comments

Comments
 (0)