Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is still a problem with the latest version of Rust:

https://play.rust-lang.org/?version=stable&mode=debug&editio...

If you set the array size to 32, then it works. You can get around this by using a macro, instead of `Default`, or implementing Default yourself, but it's still a limitation where you can't use an array of more than 32 elements.




> You can get around this by using a macro, instead of `Default`, or implementing Default yourself

For folks who aren't familiar with Rust, implementing Default yourself looks something like: https://play.rust-lang.org/?version=stable&mode=debug&editio...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: