-
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: assertion failed left: '(Projection, AssocConst)'
right: ' (ty::Opaque, DefKind::OpaqueTy) | (ty::Projection | ty::Inherent, DefKind::AssocTy) | (ty::Weak, DefKind::TyAlias { .. })
#114744
Comments
left: '(Projection, AssocConst)'
right:
(ty::Opaque, DefKind::OpaqueTy) | (ty::Projection | ty::Inherent, DefKind::AssocTy) | (ty::Weak, DefKind::TyAlias { .. })`left: '(Projection, AssocConst)'
right: ' (ty::Opaque, DefKind::OpaqueTy) | (ty::Projection | ty::Inherent, DefKind::AssocTy) | (ty::Weak, DefKind::TyAlias { .. })
Backtrace
|
If the trait exists, it will also crash without debug assertions (stable & nightly) but ofc the failed assertion is way more useful: pub fn accept(_: impl Trait<K: Copy>) {}
pub trait Trait {
const K: i32;
} full stderr
|
Should essentially error with found associated const pub fn accept<T>()
where
T: Trait,
T::K: Copy,
{
}
pub trait Trait {
const K: i32;
} |
Regression in nightly-2022-02-03 |
Code
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: