forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#97075 - JohnTitor:issue-81804, r=compiler-e…
…rrors Add regression test for rust-lang#81804 Closes rust-lang#81804 r? `@compiler-errors`
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// error-pattern: this file contains an unclosed delimiter | ||
// error-pattern: this file contains an unclosed delimiter | ||
// error-pattern: expected pattern, found `=` | ||
// error-pattern: expected one of `)`, `,`, `->`, `where`, or `{`, found `]` | ||
// error-pattern: expected item, found `]` | ||
|
||
fn main() {} | ||
|
||
fn p([=(} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
error: this file contains an unclosed delimiter | ||
--> $DIR/issue-81804.rs:9:11 | ||
| | ||
LL | fn p([=(} | ||
| -- ^ | ||
| || | ||
| |unclosed delimiter | ||
| unclosed delimiter | ||
|
||
error: this file contains an unclosed delimiter | ||
--> $DIR/issue-81804.rs:9:11 | ||
| | ||
LL | fn p([=(} | ||
| -- ^ | ||
| || | ||
| |unclosed delimiter | ||
| unclosed delimiter | ||
|
||
error: expected pattern, found `=` | ||
--> $DIR/issue-81804.rs:9:7 | ||
| | ||
LL | fn p([=(} | ||
| ^ expected pattern | ||
|
||
error: expected one of `)`, `,`, `->`, `where`, or `{`, found `]` | ||
--> $DIR/issue-81804.rs:9:8 | ||
| | ||
LL | fn p([=(} | ||
| ^ -^ | ||
| | | | ||
| | help: `)` may belong here | ||
| unclosed delimiter | ||
|
||
error: expected item, found `]` | ||
--> $DIR/issue-81804.rs:9:11 | ||
| | ||
LL | fn p([=(} | ||
| ^ expected item | ||
|
||
error: aborting due to 5 previous errors | ||
|