Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The problem comes from your code. You are casting a negative number to
usize
, which results in a really big unsigned number. And then you use this number as the bound in a loop in which you allocate memory, hence the allocation failure.I tried to reproduce, but of all the clues, none of them equal all zeroes. So I'm not sure what the issue was you encountered.