-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE on feature generic_const_exprs when trying to create comp time arrays #141801
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
Comments
searched nightlies: from nightly-2025-01-01 to nightly-2025-05-30 bisected with cargo-bisect-rustc v0.6.9Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --end=2025-05-30 --regress ice --preserve --script rustc -- 141801.rs
|
Below short code shows the same ICE location: #![allow(incomplete_features)]
#![feature(generic_const_exprs)]
trait Trait1 {
const ASSOC_CONST: usize;
}
const fn generic_arr<Z: Trait1, T: Copy>(t: [T; Z::ASSOC_CONST]) -> T {
t[0]
}
fn main() {} Output
Notes
|
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: