-
Notifications
You must be signed in to change notification settings - Fork 13k
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
thread 'rustc' panicked #75682
Comments
Could you provide an MCVE? I.e., it'd be great if your snippet works on https://play.rust-lang.org/ (at least, we should tweak |
Minified, struct InterruptSectorManager {
field: &'static (),
}
static FOO: [InterruptSectorManager; 2] = [InterruptSectorManager { field: &() }; 2]; Seems to have been introduced between at least |
It's a regression from 1.40.0 to 1.41.0, confirmed in godbolt (https://rust.godbolt.org/z/hssfz9). |
I guess reason of this mistake. Seem like, i get address of the newly created array here : |
Assigning |
Code
Original
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: