diff options
Diffstat (limited to 'tests/ui/parser/unicode-chars.stderr')
-rw-r--r-- | tests/ui/parser/unicode-chars.stderr | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/ui/parser/unicode-chars.stderr b/tests/ui/parser/unicode-chars.stderr new file mode 100644 index 000000000..086de5ec0 --- /dev/null +++ b/tests/ui/parser/unicode-chars.stderr @@ -0,0 +1,36 @@ +error: unknown start of token: \u{37e} + --> $DIR/unicode-chars.rs:2:14 + | +LL | let y = 0; + | ^ + | +help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not + | +LL | let y = 0; + | ~ + +error: unknown start of token: \u{a0} + --> $DIR/unicode-chars.rs:5:5 + | +LL | let x = 0; + | ^^^^ + | + = note: character appears 3 more times +help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not + | +LL | let x = 0; + | ++++ + +error: unknown start of token: \u{2a75} + --> $DIR/unicode-chars.rs:9:15 + | +LL | let _ = 1 ⩵ 2; + | ^ + | +help: Unicode character '⩵' (Two Consecutive Equals Signs) looks like '==' (Double Equals Sign), but it is not + | +LL | let _ = 1 == 2; + | ~~ + +error: aborting due to 3 previous errors + |