rust/tests/ui/parser/unicode-chars.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
572 B
Rust
Raw Normal View History

fn main() {
let y = 0;
//~^ ERROR unknown start of token: \u{37e}
2018-05-25 23:57:02 -05:00
//~^^ HELP Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
2023-01-14 13:02:14 -06:00
    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
2023-01-18 20:25:24 -06:00
let _ = 1 2;
//~^ ERROR unknown start of token
//~^^ HELP Unicode character '⩵' (Two Consecutive Equals Signs) looks like '==' (Double Equals Sign), but it is not
}