-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: Unexpected type for constructor Variant(0)
: Alias(Opaque, AliasTy ..
#139817
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
Labels
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
bisects to #139501 |
Variant that also ICEs in stable rust 1.86.0: fn enum_upvar() -> impl Copy {
let mut foo = enum_upvar();
foo = Some(enum_upvar());
let x = || match foo {
Some(_) => (),
_ => {}
};
foo
} Error output
|
yes, see #119786 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
F-type_alias_impl_trait
`#[feature(type_alias_impl_trait)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
auto-reduced (treereduce-rust):
original:
Version information
Possibly related line of code:
rust/compiler/rustc_pattern_analysis/src/rustc.rs
Lines 253 to 265 in c580c49
Command:
/home/matthias/.rustup/toolchains/master/bin/rustc
Program output
@rustbot label +F-type_alias_impl_trait
The text was updated successfully, but these errors were encountered: