-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE: const_generics: unexpected const parent in type_of_def_id() #73683
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
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
It'd be great if we could drop external dependency, marking as E-needs-mcve. |
Slightly minified, #![feature(const_generics)]
#![allow(dead_code, incomplete_features)]
pub struct ChannelUsage;
impl ChannelUsage {
fn collect_arr<const N: i32>() {}
}
fn foo() {
ChannelUsage::collect_arr::<16i32>();
} Error
|
should be fixed by #74113 and we already have a nearly identical test to the mcve by @connorskees @Boscop In case your original example is also fixed, please close this issue. |
Closing as I expect this to be fixed, in case the issue persists don't hesitate to open a new issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-generics
Area: const generics (parameters and arguments)
C-bug
Category: This is a bug.
F-const_generics
`#![feature(const_generics)]`
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
requires-nightly
This issue requires a nightly compiler in some way.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Meta
rustc --version --verbose
:Error output
The text was updated successfully, but these errors were encountered: