Rust folks: what are your most common runtime errors?
-
-
It is. That particular example would be quite convoluted to extract, but same issue is easy to trigger even with a tweet-sized snippet: use std::any::Any; fn main() { let mut b: Box<Any> = Box::new(42); for _ in 0..1_000_000 { b = Box::new(b); } }
-
The fun bit with deep data structures is that you actually don't even know when and where exactly it will fail - either of the custom code, automatic drop glue or derive(Debug, PartialEq, ...) can fail at some arbitrary point.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at