-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 referencing associated type via Self
in where
clauses
#39535
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Regression from #38920. |
Ran into this as well, but when using an auxiliary trait parameter. Seems to affect nightly and beta, but not stable. use std::ops::Add;
struct Trivial;
impl Add<Self::Output> for Trivial {
// ^^^^^^^^^^^^ rustc really hates this
type Output = Trivial;
fn add(self, _: Trivial) -> Trivial { self }
}
fn main() {} Run this on the Rust Playground Crash log
|
sfackler
added
the
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
label
Feb 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rustc hit an ICE when
Self::Foo
is used inwhere
clauses.I tried this code:
I expected to see this happen: Compilation failure.
Instead, this happened: rustc panicked.
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: