Skip to content

Commit c6cdbe9

Browse files
authored
Rollup merge of rust-lang#66429 - guanqun:add-unit-test, r=Centril
Add a regression test for rust-lang#62524 Closes rust-lang#62524
2 parents c5bb2ec + ed9c5da commit c6cdbe9

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/test/ui/parser/issue-62524.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// ignore-tidy-trailing-newlines
2+
// error-pattern: aborting due to 3 previous errors
3+
y![
4+
Ϥ,

src/test/ui/parser/issue-62524.stderr

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
error: this file contains an un-closed delimiter
2+
--> $DIR/issue-62524.rs:4:3
3+
|
4+
LL | y![
5+
| - un-closed delimiter
6+
LL | Ϥ,
7+
| ^
8+
9+
error: macros that expand to items must be delimited with braces or followed by a semicolon
10+
--> $DIR/issue-62524.rs:3:3
11+
|
12+
LL | y![
13+
| ___^
14+
LL | | Ϥ,
15+
| |__^
16+
|
17+
help: change the delimiters to curly braces
18+
|
19+
LL | y!{
20+
LL | Ϥ}
21+
|
22+
help: add a semicolon
23+
|
24+
LL | Ϥ,;
25+
| ^
26+
27+
error: cannot find macro `y` in this scope
28+
--> $DIR/issue-62524.rs:3:1
29+
|
30+
LL | y![
31+
| ^
32+
33+
error: aborting due to 3 previous errors
34+

0 commit comments

Comments
 (0)