-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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
|
# for free
to join this conversation on GitHub.
Already have an account?
# 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: