From 0e89468188b9d347495dad5b98af137e5f477432 Mon Sep 17 00:00:00 2001 From: garhve Date: Sun, 1 Jan 2023 23:23:55 +0800 Subject: finish chapter 9 --- rust/theBook/chapter-9-error-handling/panic/src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rust/theBook/chapter-9-error-handling/panic/src/main.rs (limited to 'rust/theBook/chapter-9-error-handling/panic/src') diff --git a/rust/theBook/chapter-9-error-handling/panic/src/main.rs b/rust/theBook/chapter-9-error-handling/panic/src/main.rs new file mode 100644 index 0000000..a3bc2a7 --- /dev/null +++ b/rust/theBook/chapter-9-error-handling/panic/src/main.rs @@ -0,0 +1,5 @@ +fn main() { + let x = vec![1,2,3]; + + x[99]; +} -- cgit v1.2.3-70-g09d2