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.
improve error message for unexpected comma token in multiline block
confusing diagnostics, issue rust-lang#72253 add test for confusing error message, issue-72253 remove is_multiline check, refactor to self.expect(&token:Semi) update issue-72253 tests return Ok
- Loading branch information
1 parent
914adf0
commit f384cdc
Showing
3 changed files
with
29 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
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,6 @@ | ||
fn main() { | ||
let a = std::process::Command::new("echo") | ||
.arg("1") | ||
,arg("2") //~ ERROR expected one of `.`, `;`, `?`, or an operator, found `,` | ||
.output(); | ||
} |
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,10 @@ | ||
error: expected one of `.`, `;`, `?`, or an operator, found `,` | ||
--> $DIR/issue-72253.rs:4:9 | ||
| | ||
LL | .arg("1") | ||
| - expected one of `.`, `;`, `?`, or an operator | ||
LL | ,arg("2") | ||
| ^ unexpected token | ||
|
||
error: aborting due to previous error | ||
|