Skip to content

Commit 1f9345d

Browse files
committed
Add comment to test
1 parent 206dc78 commit 1f9345d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tests/ui/unicode-quote.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// Provide a useful error message when attempting to escape a non-ascii quotation mark.
2+
// <https://github.com/rust-lang/rust/issues/128858>
13
fn main() {
24
dbg!("Is this \“ a small sized quote or a big sized quote. \“ ");
3-
//~^ 2:20: 2:21: unknown character escape: `\u{201c}`
4-
//~^^ 2:65: 2:66: unknown character escape: `\u{201c}`
5+
//~^ ERROR 4:20: 4:21: unknown character escape: `\u{201c}`
6+
//~^^ ERROR 4:65: 4:66: unknown character escape: `\u{201c}`
57
}

tests/ui/unicode-quote.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: unknown character escape: `\u{201c}`
2-
--> $DIR/unicode-quote.rs:2:20
2+
--> $DIR/unicode-quote.rs:4:20
33
|
44
LL | dbg!("Is this \“ a small sized quote or a big sized quote. \“ ");
55
| ^ unknown character escape
@@ -12,7 +12,7 @@ LL + dbg!("Is this \u{201c} a small sized quote or a big sized quote. \“ "
1212
|
1313

1414
error: unknown character escape: `\u{201c}`
15-
--> $DIR/unicode-quote.rs:2:65
15+
--> $DIR/unicode-quote.rs:4:65
1616
|
1717
LL | dbg!("Is this \“ a small sized quote or a big sized quote. \“ ");
1818
| ^ unknown character escape

0 commit comments

Comments
 (0)