-
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.
Auto merge of #98785 - compiler-errors:no-check-expr-in-check-compati…
…ble, r=estebank Do not call `check_expr` in `check_compatible`, since it has side-effects Fixes a weird suggestion in #98784 found later: Fixes #98894 Fixes #98897
- Loading branch information
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