2022-03-29 17:19:16 +00:00
|
|
|
error: called `.err().expect()` on a `Result` value
|
2022-11-19 12:50:02 +00:00
|
|
|
--> $DIR/err_expect.rs:12:16
|
2022-03-29 17:19:16 +00:00
|
|
|
|
|
|
|
|
LL | test_debug.err().expect("Testing debug type");
|
|
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::err-expect` implied by `-D warnings`
|
|
|
|
|
2022-10-21 21:35:39 +00:00
|
|
|
error: called `.err().expect()` on a `Result` value
|
2022-11-19 12:50:02 +00:00
|
|
|
--> $DIR/err_expect.rs:27:7
|
2022-10-21 21:35:39 +00:00
|
|
|
|
|
|
|
|
LL | x.err().expect("17");
|
|
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2022-03-29 17:19:16 +00:00
|
|
|
|