Closed
Description
Works fine one stable. ICE on beta and nightly. I couldn't reduce or generalize this error any more than this. It appears to be triggered by some unknown type; notice the inner f()
has no argument here, it could be any type that doesn't meet the bounds.
fn f<I>(i: I)
where
I: IntoIterator,
I::Item: for<'a> Into<&'a ()>,
{}
fn main() {
f(&[f()]);
}
Metadata
Metadata
Assignees
Labels
Area: Associated items (types, constants & functions)Area: Trait systemArea: Type systemIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️High priorityRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to beta.