Add a demonstration of a panic

This commit is contained in:
Manuel Thalmann 2025-02-01 13:25:53 +01:00
parent ed3b93131f
commit ae7aab81aa
3 changed files with 19 additions and 0 deletions

7
panic/Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "panic"
version = "0.1.0"

9
panic/Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "panic"
version = "0.1.0"
edition = "2021"
[dependencies]
[profile.release]
panic = 'abort'

3
panic/src/main.rs Normal file
View file

@ -0,0 +1,3 @@
fn main() {
panic!("crash and burn");
}