-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 on trait aliases without a flag #65673
Comments
backtrace:
|
|
Slightly reduced: trait Trait {}
trait WithType {
type Ctx;
}
trait Alias<T> = where T: Trait;
impl<T> WithType for T {
type Ctx = dyn Alias<T>;
}
|
triage: P-medium. removing nomination label. reasoning: you get the feature flag diagnostic, including the span of the offending code and the suggestion of what to write. So this is reasonable for users to deal with, even with the ICE. (as opposed to cases where the ICE occurs without any useful output for the user.) |
The following code panics the compiler:
The text was updated successfully, but these errors were encountered: