1 error: used `unwrap()` on `an Option` value
2 --> $DIR/unwrap_expect_used.rs:23:5
7 = note: `-D clippy::unwrap-used` implied by `-D warnings`
8 = help: if this value is `None`, it will panic
10 error: used `expect()` on `an Option` value
11 --> $DIR/unwrap_expect_used.rs:24:5
13 LL | Some(3).expect("Hello world!");
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: `-D clippy::expect-used` implied by `-D warnings`
17 = help: if this value is `None`, it will panic
19 error: used `unwrap()` on `a Result` value
20 --> $DIR/unwrap_expect_used.rs:31:5
25 = help: if this value is an `Err`, it will panic
27 error: used `expect()` on `a Result` value
28 --> $DIR/unwrap_expect_used.rs:32:5
30 LL | a.expect("Hello world!");
31 | ^^^^^^^^^^^^^^^^^^^^^^^^
33 = help: if this value is an `Err`, it will panic
35 error: used `unwrap_err()` on `a Result` value
36 --> $DIR/unwrap_expect_used.rs:33:5
41 = help: if this value is an `Ok`, it will panic
43 error: used `expect_err()` on `a Result` value
44 --> $DIR/unwrap_expect_used.rs:34:5
46 LL | a.expect_err("Hello error!");
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 = help: if this value is an `Ok`, it will panic
51 error: aborting due to 6 previous errors