-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
from-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Description
fn foo() -> impl IntoIterator<Item = u32> {
if false {
let x: Vec<_> = foo().into_iter().collect();
}
[1, 2]
}error[E0282]: type annotations needed
--> <source>:3:25
|
3 | let x: Vec<_> = foo().into_iter().collect();
| ^^^^^^^^^^^^^^^^^ cannot infer type
While we're able to do method selection on foo() itself, we can't do so on <opaque_infer as IntoIterator>::IntoIter as that one is treated as an ordinary inference variable.
Affects loess-0.2.2
Metadata
Metadata
Assignees
Labels
from-craterA regression found via a crater run, not part of our test suiteA regression found via a crater run, not part of our test suite
Type
Projects
Status
todo