File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1+ // Provide a useful error message when attempting to escape a non-ascii quotation mark.
2+ // <https://github.com/rust-lang/rust/issues/128858>
13fn 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}
Original file line number Diff line number Diff line change 11error: unknown character escape: `\u{201c}`
2- --> $DIR/unicode-quote.rs:2 :20
2+ --> $DIR/unicode-quote.rs:4 :20
33 |
44LL | 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
1414error: unknown character escape: `\u{201c}`
15- --> $DIR/unicode-quote.rs:2 :65
15+ --> $DIR/unicode-quote.rs:4 :65
1616 |
1717LL | dbg!("Is this \“ a small sized quote or a big sized quote. \“ ");
1818 | ^ unknown character escape
You can’t perform that action at this time.
0 commit comments