-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not call
check_expr
in check_compatible
, since it has side-eff…
…ects and we've already checked all args
- Loading branch information
1 parent
86b8dd5
commit 6858fbc
Showing
4 changed files
with
24 additions
and
45 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
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
fn main() { | ||
let needlesArr: Vec<char> = vec!['a', 'f']; | ||
needlesArr.iter().fold(|x, y| { | ||
//~^ ERROR this function takes 2 arguments but 1 argument was supplied | ||
}); | ||
//~^^ ERROR mismatched types | ||
//~| 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