rust will never segfault without unsafe
not true... you can still get deterministic segfaults for say stack overflow...
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=6f9c2f59339bc834969338a7c4da45b4
It can show a warning in such cases but there can be no-warning code that stack overflows...
see the runtime error below?
oh it overflowed here as well... :P
Обсуждают сегодня