Size_of and constexpr

Trying to turn a T: Copy+Sized into a byte array gives me a baffling error - Rust Playground

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.

https://github.com/rust-lang/rust/issues/43408

1 Like

Ah. Thanks.

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