summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/unicode-chars.rs
blob: cd25c7566897a752b2bb92223b7ba1aa11e02d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    let y = 0;
    //~^ ERROR unknown start of token: \u{37e}
    //~^^ HELP Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
        let x = 0;
    //~^ ERROR unknown start of token: \u{a0}
    //~^^ NOTE character appears 3 more times
    //~^^^ HELP Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
    let _ = 1  2;
    //~^ ERROR unknown start of token
    //~^^ HELP Unicode character '⩵' (Two Consecutive Equals Signs) looks like '==' (Double Equals Sign), but it is not
}