diff --git a/crates/roc_std/src/roc_list.rs b/crates/roc_std/src/roc_list.rs index fc4247f459..b2bcae8565 100644 --- a/crates/roc_std/src/roc_list.rs +++ b/crates/roc_std/src/roc_list.rs @@ -56,7 +56,7 @@ impl RocList { } pub fn iter(&self) -> impl Iterator { - self.into_iter() + self.as_slice().iter() } /// Used for both roc_alloc and roc_realloc - given the number of elements,