mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
38 lines
1 KiB
Text
38 lines
1 KiB
Text
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:15:9
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/try_err.rs:4:9
|
|
|
|
|
LL | #![deny(clippy::try_err)]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:25:9
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:45:17
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:64:17
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:103:9
|
|
|
|
|
LL | Err(foo!())?;
|
|
| ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|