Size_of and constexpr

Trying to turn a T: Copy+Sized into a byte array gives me a baffling error - https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=18692caf27b2a06b679d2c01e3dd44ab

I'm guessing that the array size needs to be known before specializing on T, but I'm not sure how to confirm that.

This is a well-known and long-standing problem. See this issue and its many, many closed duplicates.

1 Like

Ah. Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.