mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
16 lines
476 B
Text
16 lines
476 B
Text
error: called `.err().expect()` on a `Result` value
|
|
--> $DIR/err_expect.rs:12:16
|
|
|
|
|
LL | test_debug.err().expect("Testing debug type");
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
|
= note: `-D clippy::err-expect` implied by `-D warnings`
|
|
|
|
error: called `.err().expect()` on a `Result` value
|
|
--> $DIR/err_expect.rs:27:7
|
|
|
|
|
LL | x.err().expect("17");
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|