-
Notifications
You must be signed in to change notification settings - Fork 1.7k
into_iterator
not resolved or completed on Vec<{unknown}>
#10297
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
Comments
Reproduced (update: #[test]
fn issue_10297() {
check(
r#"
//- minicore: iterator, sized
struct Vec<T>;
impl<T> IntoIterator for Vec<T> {
type Item = ();
type IntoIter = ();
fn into_iter(self);
}
fn main() {
let x: Vec<_>;
x.$0;
}
"#,
expect![[r#"
me into_iter() (as IntoIterator) fn(self) -> <Self as IntoIterator>::IntoIter
"#]],
)
} Without |
into_iterator
not resolved or complete on Vec<{unknown}>
into_iterator
not resolved or completed on Vec<{unknown}>
Some logs:
As far I can interpret the goal is |
I think that's this FIXME: The error type is legitimate here, it comes from fallback for the uninferred variable. But we need to handle that when using the type for completion etc. (In theory we'd want something like the 'type before fallback' (but with canonicalized variables).) |
Yeah, that works ^. |
It feels like we could offer
into_iter
here, since the impl is not constrained in any way:The text was updated successfully, but these errors were encountered: