-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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: with_negative_coherence
: None
in compiler/rustc_infer/src/infer/canonical/canonicalizer.rs:483:43
#119381
Comments
19: 0x7f026fb8443a - <rustc_infer[c0adb274575b21bc]::infer::canonical::canonicalizer::Canonicalizer as rustc_type_ir[c1725dac3fe0073f]::fold::TypeFolder<rustc_middle[f757abec48a5eb78]::ty::context::TyCtxt>>::fold_const |
error[E0428]: the name
|
This seems to be triggered only by invalid code with an unstable feature gate. MCVE: #![feature(with_negative_coherence)]
trait Trait {}
impl<const N: u8> Trait for [(); N] {}
impl<const N: i8> Trait for [(); N] {} |
even shorter repro:
auto-reduced (treereduce-rust):
original:
Version information
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc -Zcrate-attr=feature(with_negative_coherence)
Program output
The text was updated successfully, but these errors were encountered: