-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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: unexpected type encountered in variance inference: _
#109071
Labels
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
matthiaskrgr
added
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
C-bug
Category: This is a bug.
labels
Mar 13, 2023
Minimized with struct Windows<T> {}
impl<T> Windows {
type Item = &[T];
fn next() -> Option<Self::Item> {}
}
impl<T> Windows<T> {
fn T() -> Option<Self::Item> {}
} @rustbot label +S-bug-has-mcve |
Alternative: #![allow(incomplete_features)]
#![feature(inherent_associated_types)]
struct Windows<T> {}
impl<T> Windows<()> {
type Item = T;
fn next() -> Self::Item {}
}
impl<T> Windows<T> {
fn gates() -> Self::Item {}
} Would the error change if the compiler is built with |
rustbot
added
the
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
label
Mar 18, 2023
rustbot
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
May 9, 2023
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this issue
Jun 25, 2023
Signed-off-by: Yuki Okushi <[email protected]>
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 25, 2023
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#112976 (Add test for futures with HRTB) - rust-lang#113013 (rustdoc: get rid of extra line when line-wrapping fn decls with empty arg list) - rust-lang#113030 (Add a regression test for rust-lang#109071) - rust-lang#113031 (Add a regression test for rust-lang#110933) - rust-lang#113036 (Accept `ReStatic` for RPITIT) r? `@ghost` `@rustbot` modify labels: rollup
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.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
glacier
ICE tracked in rust-lang/glacier.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: