Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
box_dynamic is not actually be dynamic: it's type is *const MySuperSliceable<[u8; 8]>.
box_dynamic
*const MySuperSliceable<[u8; 8]>
The correct way to get boxed dynamic version would be:
let box_dynamic: Box<MySuperSliceable<[u8]>> = Box::new(sized);
box_dynamic is not actually dynamic: it's type is *const MySuperSliceable<[u8; 8]>.