-
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
Type which uses const generics leads to ICE when using Derive #60724
Comments
@rustbot modify labels: I-ICE C-Bug A-const-generics |
I strongly suspect this might be because the derive(Debug) macro implementation will copy-paste |
This now has only the |
Can confirm, in case: pub struct Test<const X: usize>(pub [usize; X]); compiler complain that
|
Fix issues with const argument inference Fixes rust-lang#60724. Fixes rust-lang#61346. r? @eddyb
Fix issues with const argument inference Fixes rust-lang#60724. Fixes rust-lang#61346. r? @eddyb
Fix issues with const argument inference Fixes rust-lang#60724. Fixes rust-lang#61346. r? @eddyb
This code
leads to
It doesn't seem
Debug
related, since the same happens for derivingCopy
.The text was updated successfully, but these errors were encountered: