Skip to content

Commit 71cd4c8

Browse files
committed
ui test for directed quote help suggestion #58436
1 parent c34aac7 commit 71cd4c8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// ignore-tidy-linelength
2+
3+
fn main() {
4+
println!(“hello world”);
5+
//~^ ERROR unknown start of token: \u{201c}
6+
//~^^ HELP Unicode characters '“' (Left Double Quotation Mark) and '”' (Right Double Quotation Mark) look like '"' (Quotation Mark), but are not
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
error: unknown start of token: /u{201c}
2+
--> $DIR/unicode-quote-chars.rs:4:14
3+
|
4+
LL | println!(“hello world”);
5+
| ^
6+
help: Unicode characters '“' (Left Double Quotation Mark) and '”' (Right Double Quotation Mark) look like '"' (Quotation Mark), but are not
7+
|
8+
LL | println!("hello world");
9+
| ^^^^^^^^^^^^^
10+
11+
error: aborting due to previous error
12+

0 commit comments

Comments
 (0)