-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.max recognized as Ord.max instead of Iterator.max #11048
Comments
I've got a minimal example for this:
Compiles on 1.57.0, but rust-analyzer brings up the docs for rust-analyzer version: db2a708 2021-12-13 stable |
dupe of #10673 |
Yes and it was just closed 11 hours ago :) |
@Crazytieguy your code works now: #10677 is still an issue, unfortunately |
rust-analyzer version: db2a708 2021-12-13 stable
rustc version: rustc 1.59.0-nightly (efec54529 2021-12-04)
code: https://github.com/Crazytieguy/advent-2021/blob/e3b5f3335acb6ea73e03cf397b22e59cdd7af356/src/bin/day18/main.rs#L131
This code compiles and runs fine, but rust-analyzer is giving a wrong error for line 131:
expected 1 argument, found 0
I'm calling max on an iterator but it thinks I'm calling max on Ord.
The text was updated successfully, but these errors were encountered: