mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:11:9
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
|
|
|
|
note: lint level defined here
|
|
--> $DIR/try_err.rs:3:9
|
|
|
|
|
LL | #![deny(clippy::try_err)]
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:21:9
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:41:17
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:60:17
|
|
|
|
|
LL | Err(err)?;
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
--> $DIR/try_err.rs:96:9
|
|
|
|
|
LL | Err(foo!())?;
|
|
| ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|