-
Notifications
You must be signed in to change notification settings - Fork 13k
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 stable: could not fully normalize <&Struct as Trait>::Type
as enum variant
#91234
Comments
Seems as if This actually results in ICEs whenever
I can try to fix this issue. |
@rustbot claim |
@b-naber There are quite a few of seemingly related issues, so fixing one might eradicate many. |
It looks like adding the impl used in the bound makes compilation succeed: impl Trait for &Struct {
type Type = i32;
} So am I correct that this is an ICE that occurs when an error should've been emitted? |
@camelid That's what I also thought initially, but it seems we never reject these during typecheck, e.g. this also compiles:
Using this function or the enum above would yield an error then. |
Ah, that's a good point! The |
@b-naber Thank you! |
The error message strongly suggests that this is coming from the same origin as #91231, but the reproduction is different.
In this one, due to lack of reliance on
#![feature(extern_types)]
it is possible to trigger it on stable channel as well as nightly.I made a repo to have both codes at one place.
Code
Meta
Stable:
rustc --version --verbose
:Nightly:
Error output
For both nightly and stable it is the same. To keep it short, I removed
dead_code
warnings.Backtrace
The text was updated successfully, but these errors were encountered: