forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beta backport of arg mismatch bugfix
- Loading branch information
1 parent
4766af1
commit 3c1ef01
Showing
7 changed files
with
51 additions
and
22 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,4 @@ | ||
fn main() { | ||
(|_, ()| ())(if true {} else {return;}); | ||
//~^ ERROR this function takes 2 arguments but 1 argument was supplied | ||
} |
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,19 @@ | ||
error[E0057]: this function takes 2 arguments but 1 argument was supplied | ||
--> $DIR/issue-98894.rs:2:5 | ||
| | ||
LL | (|_, ()| ())(if true {} else {return;}); | ||
| ^^^^^^^^^^^^--------------------------- an argument of type `()` is missing | ||
| | ||
note: closure defined here | ||
--> $DIR/issue-98894.rs:2:6 | ||
| | ||
LL | (|_, ()| ())(if true {} else {return;}); | ||
| ^^^^^^^ | ||
help: provide the argument | ||
| | ||
LL | (|_, ()| ())(if true {} else {return;}, ()); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0057`. |
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,4 @@ | ||
fn main() { | ||
(|_, ()| ())([return, ()]); | ||
//~^ ERROR this function takes 2 arguments but 1 argument was supplied | ||
} |
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,19 @@ | ||
error[E0057]: this function takes 2 arguments but 1 argument was supplied | ||
--> $DIR/issue-98897.rs:2:5 | ||
| | ||
LL | (|_, ()| ())([return, ()]); | ||
| ^^^^^^^^^^^^-------------- an argument of type `()` is missing | ||
| | ||
note: closure defined here | ||
--> $DIR/issue-98897.rs:2:6 | ||
| | ||
LL | (|_, ()| ())([return, ()]); | ||
| ^^^^^^^ | ||
help: provide the argument | ||
| | ||
LL | (|_, ()| ())([return, ()], ()); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0057`. |
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