ui test for directed quote help suggestion #58436

This commit is contained in:
Patrick McCarter 2019-02-16 20:56:12 -05:00
parent c34aac7b17
commit 71cd4c8e4a
2 changed files with 19 additions and 0 deletions

View 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
}

View 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