Why doesn't rust just heap allocate automatically?

The example you have is for a slice, which is something specific. How would you put a scalar value on the heap?

Hopefully you're not boxing all that much in Rust :slight_smile:.