-
Notifications
You must be signed in to change notification settings - Fork 13.4k
ICE with a fixed-size array of unsized elements #19201
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
Visiting for triage. I've updated the code to: #![crate_type = "lib"]
fn foo(a: [[u8]; 5]) {} But it still ICE's with:
|
Another repro: static x: u8 = (*b"12345")[1];
fn main() {} |
Neither of the following snippets cause an ICE as of #![crate_type = "lib"]
fn foo(a: [[u8]; 5]) {} static x: u8 = (*b"12345")[1];
fn main() {} |
lnicola
added a commit
to lnicola/rust
that referenced
this issue
Feb 24, 2025
doc: toc for other editors
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
foo.rs
:Compilation output:
This only happens when
-g
is specified, and is possibly related to #18866.The text was updated successfully, but these errors were encountered: