Skip to content

Commit 39edcfa

Browse files
committed
Add more nbsp to unicode-chars test
1 parent 4b51adf commit 39edcfa

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed

tests/ui/parser/unicode-chars.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ fn main() {
22
let y = 0;
33
//~^ ERROR unknown start of token: \u{37e}
44
//~^^ HELP Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not
5-
    let x = 0;
5+
    let x = 0;
66
//~^ ERROR unknown start of token: \u{a0}
77
//~^^ NOTE character appears 3 more times
88
//~^^^ HELP Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
9+
//~^^^^ ERROR unknown start of token: \u{a0}
10+
//~^^^^^ HELP Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
11+
//~^^^^^^ ERROR unknown start of token: \u{a0}
12+
//~^^^^^^^ HELP Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
13+
//~^^^^^^^^ ERROR unknown start of token: \u{a0}
14+
//~^^^^^^^^^ HELP Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
915
}

tests/ui/parser/unicode-chars.stderr

+36-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,47 @@ LL | let y = 0;
1212
error: unknown start of token: \u{a0}
1313
--> $DIR/unicode-chars.rs:5:5
1414
|
15-
LL |     let x = 0;
15+
LL |     let x = 0;
1616
| ^^^^
1717
|
1818
= note: character appears 3 more times
1919
help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
2020
|
21-
LL | let x = 0;
21+
LL | let x = 0;
2222
| ++++
2323

24-
error: aborting due to 2 previous errors
24+
error: unknown start of token: \u{a0}
25+
--> $DIR/unicode-chars.rs:5:12
26+
|
27+
LL |     let x = 0;
28+
| ^
29+
|
30+
help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
31+
|
32+
LL |     let x = 0;
33+
| +
34+
35+
error: unknown start of token: \u{a0}
36+
--> $DIR/unicode-chars.rs:5:14
37+
|
38+
LL |     let x = 0;
39+
| ^
40+
|
41+
help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
42+
|
43+
LL |     let x = 0;
44+
| +
45+
46+
error: unknown start of token: \u{a0}
47+
--> $DIR/unicode-chars.rs:5:16
48+
|
49+
LL |     let x = 0;
50+
| ^
51+
|
52+
help: Unicode character ' ' (No-Break Space) looks like ' ' (Space), but it is not
53+
|
54+
LL |     let x = 0;
55+
| +
56+
57+
error: aborting due to 5 previous errors
2558

0 commit comments

Comments
 (0)