Answers for "How to make Rust panic ?"

0

How to make Rust panic ?

/* 
In order to make a program written in Rust panic, you may compile and run it while it contains this instruction:
*/
([0])[([1])[0]];
/*
Running it with RUST_BACKTRACE=1 let you see how it panics. 
*/
Posted by: Guest on November-27-2020

Browse Popular Code Answers by Language