-
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
Existential type ICE without feature specified #60371
Comments
|
Again this is kinda 2 issue's in 1, so I dont know if this should have it's own issue... After some more trying, I found this also panics, but only on nightly: #![feature(existential_type)]
trait Bug {
type Item: Bug;
const FUN: fn() -> Self::Item;
}
impl Bug for () {
existential type Item: Bug;
const FUN: fn() -> Self::Item = || {};
} Notice I removed the Backtrace:
|
Another one, stable, beta & nightly: trait Bug {
type Item;
const FUN: Self::Item;
}
impl Bug for () {
existential type Item: Fn() -> Self::Item;
const FUN: fn() -> Self::Item = || { || {} }; // <---- double closure!
} Backtrace:
|
triage: P-high due to ICE; removing nomination. |
Likely duplicate from #60473 #![feature(impl_trait_in_bindings)]
struct A<'a>(&'a ());
trait Trait<T> {
}
impl<T> Trait<T> for () {
}
fn main() {
let x: impl Trait<A> = ();
} |
Another ICE that uses a nightly only feature, but still crashes on stable, beta and nightly without the
#![feature(existential_type)]
flag.According to godbolt, this sneaked in with 1.34. 1.33 and lower are not affected.
Backtrace:
The text was updated successfully, but these errors were encountered: