2022-04-07 17:39:59 +00:00
|
|
|
error: called `.err().expect()` on a `Result` value
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/err_expect.rs:10:16
|
2022-04-07 17:39:59 +00:00
|
|
|
|
|
|
|
|
LL | test_debug.err().expect("Testing debug type");
|
|
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::err-expect` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::err_expect)]`
|
2022-04-07 17:39:59 +00:00
|
|
|
|
2022-10-23 13:18:45 +00:00
|
|
|
error: called `.err().expect()` on a `Result` value
|
2024-02-27 14:25:18 +00:00
|
|
|
--> tests/ui/err_expect.rs:25:7
|
2022-10-23 13:18:45 +00:00
|
|
|
|
|
|
|
|
LL | x.err().expect("17");
|
|
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2022-04-07 17:39:59 +00:00
|
|
|
|