mirror of https://github.com/rust-lang/nomicon
heap::deallocate expects a *mut u8 but here a *mut T is given. The final code is correct, the example here would not compile without the cast. I used *mut _ instead of *mut u8 to be consistent with the final code.
parent
ae44e86c13
commit
5060b9c061
Loading…
Reference in new issue