-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ICE when a supertrait bound contains a binding for a type defined in the supertrait #20825
Comments
Is that allowed syntax? As RFC 195 states "[…] associated types/lifetimes are not in scope for the optional where clause on the trait header.". I tried to express something like |
Nevermind, got it. Only Keep up your excellent work :) |
The code snippet above now causes the following error:
Changing the pub trait Processor : Subscriber<Input=<Self as Processor>::Input> {
type Input;
} yields
|
I'd like to nominate this, I don't think we can remove old_impl_check without it. |
This currently reports pub trait Subscriber {
type Input;
}
pub trait Processor : Subscriber<Input=<Self as Processor>::Input> {
type Input;
}
fn main() {} |
Example (reduced by @sfackler from something reported on IRC):
The text was updated successfully, but these errors were encountered: