1 error: used `unwrap()` on an `Option` value
2 --> $DIR/unwrap.rs:6:13
4 LL | let _ = opt.unwrap();
7 = note: if this value is `None`, it will panic
8 = help: consider using `expect()` to provide a better panic message
9 = note: `-D clippy::unwrap-used` implied by `-D warnings`
11 error: used `unwrap()` on a `Result` value
12 --> $DIR/unwrap.rs:11:13
14 LL | let _ = res.unwrap();
17 = note: if this value is an `Err`, it will panic
18 = help: consider using `expect()` to provide a better panic message
20 error: used `unwrap_err()` on a `Result` value
21 --> $DIR/unwrap.rs:12:13
23 LL | let _ = res.unwrap_err();
26 = note: if this value is an `Ok`, it will panic
27 = help: consider using `expect_err()` to provide a better panic message
29 error: aborting due to 3 previous errors