mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Add assert related to RocList capacity of 0
This commit is contained in:
parent
af49d9bdb2
commit
31f61d81f1
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ impl<T> RocList<T> {
|
|||
where
|
||||
T: Clone,
|
||||
{
|
||||
assert!(capacity >= 0);
|
||||
assert!(slice.len() <= capacity);
|
||||
|
||||
let ptr = slice.as_ptr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue