-
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
"#[derive] can't be used on a non-Copy #[repr(packed)] struct" but struct is Copy #50826
Comments
The warning changed in #51143 to require the struct to derive, rather than manually impl, However #51143 (comment) says that the compiler does generate code that uses references to fields if |
Let's just reuse this issue for that. It shouldn't be too hard of a change, I think, but I'm uncertain. |
I don't understand. Could you post some code that doesn't behave as it should? |
Switching from |
Triage: this still warns today |
I'm getting this warning here:
|
Reported by @retep998 at #46043 (comment), here's a minimal example:
play
The text was updated successfully, but these errors were encountered: