-
Notifications
You must be signed in to change notification settings - Fork 0
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
inductive cycles as ambig causes unintended breakage #114
Comments
original test by @aliemjay ❤️ pub trait ParallelIterator {
type Item;
}
impl<T> ParallelIterator for T {
type Item = u32;
}
trait Trait {}
impl<A, B> Trait for (A, B) where
//~^ type annotations needed: cannot satisfy `<<A as ParallelIterator>::Item as ParallelIterator>::Item == u32`
A: ParallelIterator,
A::Item: ParallelIterator<Item = u32>,
B: ParallelIterator,
B::Item: ParallelIterator<Item = u32>,
{}
fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this should compile but fails with
The underlying issue is trying to prove
<A as Trait>::Item: Trait
normalizes the self type:normalizes-to(<A as Trait>::Item)
A::Item: Trait<Item = u32>
alias-relate(A::Item, A)
normalizes-to(<A as Trait>::Item)
inductive cycleB::Item: Trait<Item = i32>
alias-relate(B::Item, A)
normalizes-to(<B as Trait>::Item)
A::Item: Trait<Item = u32>
alias-relate(A::Item, B)
normalizes-to(<A as Trait>::Item)
inductive cycleB::Item: Trait<Item = i32>
alias-relate(B::Item, B)
normalizes-to(<B as Trait>::Item)
inductive cycleThe text was updated successfully, but these errors were encountered: