ui test for directed quote help suggestion #58436
This commit is contained in:
parent
c34aac7b17
commit
71cd4c8e4a
7
src/test/ui/parser/unicode-quote-chars.rs
Normal file
7
src/test/ui/parser/unicode-quote-chars.rs
Normal file
@ -0,0 +1,7 @@
|
||||
// ignore-tidy-linelength
|
||||
|
||||
fn main() {
|
||||
println!(“hello world”);
|
||||
//~^ ERROR unknown start of token: \u{201c}
|
||||
//~^^ HELP Unicode characters '“' (Left Double Quotation Mark) and '”' (Right Double Quotation Mark) look like '"' (Quotation Mark), but are not
|
||||
}
|
12
src/test/ui/parser/unicode-quote-chars.stderr
Normal file
12
src/test/ui/parser/unicode-quote-chars.stderr
Normal file
@ -0,0 +1,12 @@
|
||||
error: unknown start of token: /u{201c}
|
||||
--> $DIR/unicode-quote-chars.rs:4:14
|
||||
|
|
||||
LL | println!(“hello world”);
|
||||
| ^
|
||||
help: Unicode characters '“' (Left Double Quotation Mark) and '”' (Right Double Quotation Mark) look like '"' (Quotation Mark), but are not
|
||||
|
|
||||
LL | println!("hello world");
|
||||
| ^^^^^^^^^^^^^
|
||||
|
||||
error: aborting due to previous error
|
||||
|
Loading…
x
Reference in New Issue
Block a user