Skip to content

Commit

Permalink
ui test for directed quote help suggestion #58436
Browse files Browse the repository at this point in the history
  • Loading branch information
pmccarter committed Feb 17, 2019
1 parent c34aac7 commit 71cd4c8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/parser/unicode-quote-chars.rs
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions src/test/ui/parser/unicode-quote-chars.stderr
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 71cd4c8

Please sign in to comment.