📜  如何让 Rust 恐慌? - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.444000             🧑  作者: Mango

代码示例1
/* 
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. 
*/