5 ms·
It might be worth noting that unimplemented!() is a thin wrapper around panic!(), so if execution makes it to that line, your program will crash. Rust actually
by oconnor663 3y ago
It might be worth noting that unimplemented!() is a thin wrapper around panic!(), so if execution makes it to that line, your program will crash.
Rust actually does allow uninitialized variables, even in safe code. But it'll be a compiler error if you try to use them in any way before initializing them, so this is mostly just a curiosity: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5ecbe6a666cfb6efd7368938cc53d0ea https://play.rust-lang.org/?version=stable&mode=debug&editio...