Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 40fb2e9

Browse files
m-ou-selrh2000
authored andcommitted
Update reserved-prefixes test output.
1 parent ce43fc9 commit 40fb2e9

File tree

1 file changed

+54
-36
lines changed

1 file changed

+54
-36
lines changed

src/test/ui/rust-2021/reserved-prefixes.stderr

Lines changed: 54 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,91 +2,109 @@ error: prefix `foo` is unknown
22
--> $DIR/reserved-prefixes.rs:16:12
33
|
44
LL | demo3!(foo#bar);
5-
| ^^^- help: consider inserting a whitespace before this `#`
6-
| |
7-
| unknown prefix
5+
| ^^^ unknown prefix
86
|
9-
= note: prefixed identifiers and string literals are reserved since Rust 2021
7+
= note: prefixed identifiers and literals are reserved since Rust 2021
8+
help: consider inserting whitespace here
9+
|
10+
LL | demo3!(foo #bar);
11+
| --
1012

1113
error: prefix `foo` is unknown
1214
--> $DIR/reserved-prefixes.rs:17:12
1315
|
1416
LL | demo2!(foo"bar");
15-
| ^^^- help: consider inserting a whitespace before this `"`
16-
| |
17-
| unknown prefix
17+
| ^^^ unknown prefix
18+
|
19+
= note: prefixed identifiers and literals are reserved since Rust 2021
20+
help: consider inserting whitespace here
1821
|
19-
= note: prefixed identifiers and string literals are reserved since Rust 2021
22+
LL | demo2!(foo "bar");
23+
| --
2024

2125
error: prefix `foo` is unknown
2226
--> $DIR/reserved-prefixes.rs:18:12
2327
|
2428
LL | demo2!(foo'b');
25-
| ^^^- help: consider inserting a whitespace before this `'`
26-
| |
27-
| unknown prefix
29+
| ^^^ unknown prefix
30+
|
31+
= note: prefixed identifiers and literals are reserved since Rust 2021
32+
help: consider inserting whitespace here
2833
|
29-
= note: prefixed identifiers and string literals are reserved since Rust 2021
34+
LL | demo2!(foo 'b');
35+
| --
3036

3137
error: prefix `foo` is unknown
3238
--> $DIR/reserved-prefixes.rs:20:12
3339
|
3440
LL | demo2!(foo'b);
35-
| ^^^- help: consider inserting a whitespace before this `'`
36-
| |
37-
| unknown prefix
41+
| ^^^ unknown prefix
3842
|
39-
= note: prefixed identifiers and string literals are reserved since Rust 2021
43+
= note: prefixed identifiers and literals are reserved since Rust 2021
44+
help: consider inserting whitespace here
45+
|
46+
LL | demo2!(foo 'b);
47+
| --
4048

4149
error: prefix `foo` is unknown
4250
--> $DIR/reserved-prefixes.rs:21:12
4351
|
4452
LL | demo3!(foo# bar);
45-
| ^^^- help: consider inserting a whitespace before this `#`
46-
| |
47-
| unknown prefix
53+
| ^^^ unknown prefix
54+
|
55+
= note: prefixed identifiers and literals are reserved since Rust 2021
56+
help: consider inserting whitespace here
4857
|
49-
= note: prefixed identifiers and string literals are reserved since Rust 2021
58+
LL | demo3!(foo # bar);
59+
| --
5060

5161
error: prefix `foo` is unknown
5262
--> $DIR/reserved-prefixes.rs:22:12
5363
|
5464
LL | demo4!(foo#! bar);
55-
| ^^^- help: consider inserting a whitespace before this `#`
56-
| |
57-
| unknown prefix
65+
| ^^^ unknown prefix
5866
|
59-
= note: prefixed identifiers and string literals are reserved since Rust 2021
67+
= note: prefixed identifiers and literals are reserved since Rust 2021
68+
help: consider inserting whitespace here
69+
|
70+
LL | demo4!(foo #! bar);
71+
| --
6072

6173
error: prefix `foo` is unknown
6274
--> $DIR/reserved-prefixes.rs:23:12
6375
|
6476
LL | demo4!(foo## bar);
65-
| ^^^- help: consider inserting a whitespace before this `#`
66-
| |
67-
| unknown prefix
77+
| ^^^ unknown prefix
78+
|
79+
= note: prefixed identifiers and literals are reserved since Rust 2021
80+
help: consider inserting whitespace here
6881
|
69-
= note: prefixed identifiers and string literals are reserved since Rust 2021
82+
LL | demo4!(foo ## bar);
83+
| --
7084

7185
error: prefix `foo` is unknown
7286
--> $DIR/reserved-prefixes.rs:25:12
7387
|
7488
LL | demo4!(foo#bar#);
75-
| ^^^- help: consider inserting a whitespace before this `#`
76-
| |
77-
| unknown prefix
89+
| ^^^ unknown prefix
7890
|
79-
= note: prefixed identifiers and string literals are reserved since Rust 2021
91+
= note: prefixed identifiers and literals are reserved since Rust 2021
92+
help: consider inserting whitespace here
93+
|
94+
LL | demo4!(foo #bar#);
95+
| --
8096

8197
error: prefix `bar` is unknown
8298
--> $DIR/reserved-prefixes.rs:25:16
8399
|
84100
LL | demo4!(foo#bar#);
85-
| ^^^- help: consider inserting a whitespace before this `#`
86-
| |
87-
| unknown prefix
101+
| ^^^ unknown prefix
102+
|
103+
= note: prefixed identifiers and literals are reserved since Rust 2021
104+
help: consider inserting whitespace here
88105
|
89-
= note: prefixed identifiers and string literals are reserved since Rust 2021
106+
LL | demo4!(foo#bar #);
107+
| --
90108

91109
error: aborting due to 9 previous errors
92110

0 commit comments

Comments
 (0)