18 lines
556 B
Plaintext
18 lines
556 B
Plaintext
error: called `.err().expect()` on a `Result` value
|
|
--> tests/ui/err_expect.rs:10:16
|
|
|
|
|
LL | test_debug.err().expect("Testing debug type");
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
|
= note: `-D clippy::err-expect` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::err_expect)]`
|
|
|
|
error: called `.err().expect()` on a `Result` value
|
|
--> tests/ui/err_expect.rs:25:7
|
|
|
|
|
LL | x.err().expect("17");
|
|
| ^^^^^^^^^^^^ help: try: `expect_err`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|