2022-11-17 14:57:39 +00:00
|
|
|
error: used `unwrap()` on an `Option` value
|
2023-07-29 05:06:08 +00:00
|
|
|
--> $DIR/unwrap_expect_used.rs:27:5
|
2022-08-11 17:42:16 +00:00
|
|
|
|
|
|
|
|
LL | Some(3).unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-02 18:57:06 +00:00
|
|
|
= note: if this value is `None`, it will panic
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::unwrap-used` implied by `-D warnings`
|
2022-08-11 17:42:16 +00:00
|
|
|
|
2022-11-17 14:57:39 +00:00
|
|
|
error: used `expect()` on an `Option` value
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unwrap_expect_used.rs:29:5
|
2022-08-11 17:42:16 +00:00
|
|
|
|
|
|
|
|
LL | Some(3).expect("Hello world!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-02 18:57:06 +00:00
|
|
|
= note: if this value is `None`, it will panic
|
2022-09-22 16:04:22 +00:00
|
|
|
= note: `-D clippy::expect-used` implied by `-D warnings`
|
2022-08-11 17:42:16 +00:00
|
|
|
|
2022-11-17 14:57:39 +00:00
|
|
|
error: used `unwrap()` on a `Result` value
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unwrap_expect_used.rs:45:5
|
2022-08-11 17:42:16 +00:00
|
|
|
|
|
|
|
|
LL | a.unwrap();
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-08-02 18:57:06 +00:00
|
|
|
= note: if this value is an `Err`, it will panic
|
2022-08-11 17:42:16 +00:00
|
|
|
|
2022-11-17 14:57:39 +00:00
|
|
|
error: used `expect()` on a `Result` value
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unwrap_expect_used.rs:47:5
|
2022-08-11 17:42:16 +00:00
|
|
|
|
|
|
|
|
LL | a.expect("Hello world!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-02 18:57:06 +00:00
|
|
|
= note: if this value is an `Err`, it will panic
|
2022-08-11 17:42:16 +00:00
|
|
|
|
2022-11-17 14:57:39 +00:00
|
|
|
error: used `unwrap_err()` on a `Result` value
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unwrap_expect_used.rs:49:5
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | a.unwrap_err();
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-02 18:57:06 +00:00
|
|
|
= note: if this value is an `Ok`, it will panic
|
2022-08-31 13:24:45 +00:00
|
|
|
|
2022-11-17 14:57:39 +00:00
|
|
|
error: used `expect_err()` on a `Result` value
|
2023-07-28 19:35:48 +00:00
|
|
|
--> $DIR/unwrap_expect_used.rs:51:5
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
|
LL | a.expect_err("Hello error!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-02 18:57:06 +00:00
|
|
|
= note: if this value is an `Ok`, it will panic
|
2022-08-31 13:24:45 +00:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2022-08-11 17:42:16 +00:00
|
|
|
|