summary refs log tree commit diff
path: root/src/test/ui/parser/unicode-quote-chars.rs
blob: 1812dad81afc34b92c0f1a998d8447e86be5ba9c (plain)
1
2
3
4
5
6
7
8
9
10
// 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
    //~^^^ ERROR unknown start of token: \u{201d}
    //~^^^^ HELP Unicode character '”' (Right Double Quotation Mark) looks like '"' (Quotation Mark), but it is not
    //~^^^^^ ERROR expected token: `,`
}