Skip to content

Commit

Permalink
Rollup merge of rust-lang#66429 - guanqun:add-unit-test, r=Centril
Browse files Browse the repository at this point in the history
Add a regression test for rust-lang#62524

Closes rust-lang#62524
  • Loading branch information
tmandry committed Nov 15, 2019
2 parents c5bb2ec + ed9c5da commit c6cdbe9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/ui/parser/issue-62524.rs
@@ -0,0 +1,4 @@
// ignore-tidy-trailing-newlines
// error-pattern: aborting due to 3 previous errors
y![
Ϥ,
34 changes: 34 additions & 0 deletions src/test/ui/parser/issue-62524.stderr
@@ -0,0 +1,34 @@
error: this file contains an un-closed delimiter
--> $DIR/issue-62524.rs:4:3
|
LL | y![
| - un-closed delimiter
LL | Ϥ,
| ^

error: macros that expand to items must be delimited with braces or followed by a semicolon
--> $DIR/issue-62524.rs:3:3
|
LL | y![
| ___^
LL | | Ϥ,
| |__^
|
help: change the delimiters to curly braces
|
LL | y!{
LL | Ϥ}
|
help: add a semicolon
|
LL | Ϥ,;
| ^

error: cannot find macro `y` in this scope
--> $DIR/issue-62524.rs:3:1
|
LL | y![
| ^

error: aborting due to 3 previous errors

0 comments on commit c6cdbe9

Please sign in to comment.