Closed
Description
Currently, it requires, that the new size must be greater/smaller or equal to the current size. This is because the trait also supports ZSTs, as growing an array of ZSTs will still result in a size of zero. I propose to restrict this clause to
new_size
must be strictly greater(smaller) thanlayout.size()
or both must be zero
Let's discuss/vote which constraint makes more sense.