Fix unicode char parsing in comments.
This commit is contained in:
@@ -547,3 +547,16 @@ fn test_string_literal() {
|
||||
|
||||
assert_fmt(src, src);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_unicode() {
|
||||
let src = indoc! {r#"
|
||||
/// ∞ ★ ♩ ♫ ✓
|
||||
fn foo() {
|
||||
trace @"∀💩"
|
||||
Void
|
||||
}
|
||||
"#};
|
||||
|
||||
assert_fmt(src, src);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user