panic fun
This commit is contained in:
parent
66b59c0479
commit
e19366c121
6
rustbook/panic/Cargo.toml
Normal file
6
rustbook/panic/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "panic"
|
||||
version = "0.1.0"
|
||||
authors = ["Dan Buch <dan@meatballhat.com>"]
|
||||
|
||||
[dependencies]
|
5
rustbook/panic/src/main.rs
Normal file
5
rustbook/panic/src/main.rs
Normal file
@ -0,0 +1,5 @@
|
||||
fn main() {
|
||||
let v = vec![1, 2, 3];
|
||||
|
||||
v[100];
|
||||
}
|
Loading…
Reference in New Issue
Block a user