2022-11-21 13:34:47 -06:00
|
|
|
error: used `unwrap()` on an `Option` value
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unwrap_expect_used.rs:27:5
|
2022-08-11 12:42:16 -05:00
|
|
|
|
|
|
|
|
LL | Some(3).unwrap();
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-11 07:05:13 -05:00
|
|
|
= note: if this value is `None`, it will panic
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::unwrap-used` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::unwrap_used)]`
|
2022-08-11 12:42:16 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: used `expect()` on an `Option` value
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unwrap_expect_used.rs:29:5
|
2022-08-11 12:42:16 -05:00
|
|
|
|
|
|
|
|
LL | Some(3).expect("Hello world!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-11 07:05:13 -05:00
|
|
|
= note: if this value is `None`, it will panic
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::expect-used` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::expect_used)]`
|
2022-08-11 12:42:16 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: used `unwrap()` on a `Result` value
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unwrap_expect_used.rs:45:5
|
2022-08-11 12:42:16 -05:00
|
|
|
|
|
|
|
|
LL | a.unwrap();
|
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
2023-08-11 07:05:13 -05:00
|
|
|
= note: if this value is an `Err`, it will panic
|
2022-08-11 12:42:16 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: used `expect()` on a `Result` value
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unwrap_expect_used.rs:47:5
|
2022-08-11 12:42:16 -05:00
|
|
|
|
|
|
|
|
LL | a.expect("Hello world!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-11 07:05:13 -05:00
|
|
|
= note: if this value is an `Err`, it will panic
|
2022-08-11 12:42:16 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: used `unwrap_err()` on a `Result` value
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unwrap_expect_used.rs:49:5
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | a.unwrap_err();
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-11 07:05:13 -05:00
|
|
|
= note: if this value is an `Ok`, it will panic
|
2022-08-31 08:24:45 -05:00
|
|
|
|
2022-11-21 13:34:47 -06:00
|
|
|
error: used `expect_err()` on a `Result` value
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/unwrap_expect_used.rs:51:5
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
|
LL | a.expect_err("Hello error!");
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-08-11 07:05:13 -05:00
|
|
|
= note: if this value is an `Ok`, it will panic
|
2022-08-31 08:24:45 -05:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2022-08-11 12:42:16 -05:00
|
|
|
|