-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
False error for take #6418
Comments
@happycoder97 Local imports are not supported yet: #1165 |
@flodiebold moving the imports fixed it. Thanks :) |
Here's another way to reproduce the original issue: pub fn foo<T, U>(_a: T, _b: U)
where
T: IntoIterator<Item = ()>,
U: IntoIterator<Item = ()>,
{
let mut x: Option<()> = None;
let _ = x.take();
} Guess on my part: the problem relates to how (Also just adding for the record that the error issues by RA is a mismatched-arg-count error, to make it easier to search for this issue in the future) |
After more than half a year with this error in my project, I'm starting to get motivated to do something about it 😄. But I'm not at all familiar with the code involved. Does anyone have any hints about where to start looking, or any other relevant mentoring tips? |
Huh! I think that's probably a very similar if not the same issue as #9990, i.e. a Chalk problem with environment clause elaboration (rust-lang/chalk#727). It could maybe serve as a simpler example though 🤔 |
Work around for rust-lang/rust-analyzer#6418.
I've been seeing this false error. I managed to reduce it down to the following code with no non std dependencies. Rust analyzer thinks it's Iterator::take, but it's actually Option::take
The text was updated successfully, but these errors were encountered: