-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: Layout::compute: unexpected type '_'
#126942
Comments
searched nightlies: from nightly-2022-02-19 to nightly-2024-06-25 |
Minimized: struct Thing;
pub trait Every {
type Assoc;
}
impl<T: ?Sized> Every for Thing {
type Assoc = T;
}
static I: <Thing as Every>::Assoc = 3; Error output
|
Variant with a different ICE ( struct Thing;
pub trait Every {
type Assoc;
}
impl<T: ?Sized> Every for Thing {
type Assoc = T;
}
fn foo(_: <Thing as Every>::Assoc) {} Error output
Removing the |
I investigated using the above code. The ICE occurs when we call the That explains why removing the @rustbot claim |
This is a completely different ICE. I have opened a separate issue for it: #127804 |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
Similar Issue
Issue #124207 has same ice message with similar backtrace, but this require
#![feature(transmutability)]
and#![feature(type_alias_impl_trait)]
because it usesBikeshedIntrinsicsFrom
so I decided to report mine.The text was updated successfully, but these errors were encountered: