forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
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 rust-lang#98785 - compiler-errors:no-check-expr-in-chec…
…k-compatible, r=estebank Do not call `check_expr` in `check_compatible`, since it has side-effects Fixes a weird suggestion in rust-lang#98784 found later: Fixes rust-lang#98894 Fixes rust-lang#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