what can rust code example
Example 1: what is rust lang
Rust is a multi-paradigm programming language designed for
performance and safety, especially safe concurrency.
Rust is syntactically similar to C++, but can guarantee memory safety
by using a borrow checker to validate references.
Example 2: 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.
*/