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-26 04:57:02 +00:00
//~^^ HELP Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
2023-01-14 19:02:14 +00: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-19 02:25:24 +00: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
}