2019-06-22 16:34:07 -04:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-06-18 23:22:51 -04:00
|
|
|
--> $DIR/try_err.rs:7:5
|
|
|
|
|
|
|
|
|
|
|
LL | Err(err)?;
|
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
|
|
|
|
|
|
|
|
|
|
note: lint level defined here
|
|
|
|
|
--> $DIR/try_err.rs:1:9
|
|
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::try_err)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
2019-06-22 16:34:07 -04:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-06-18 23:22:51 -04:00
|
|
|
--> $DIR/try_err.rs:14:5
|
|
|
|
|
|
|
|
|
|
|
LL | Err(err)?;
|
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
|
|
|
|
|
2019-06-22 16:34:07 -04:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-06-18 23:22:51 -04:00
|
|
|
--> $DIR/try_err.rs:31:13
|
|
|
|
|
|
|
|
|
|
|
LL | Err(err)?;
|
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
|
|
|
|
|
2019-06-22 16:34:07 -04:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-06-18 23:22:51 -04:00
|
|
|
--> $DIR/try_err.rs:46:13
|
|
|
|
|
|
|
|
|
|
|
LL | Err(err)?;
|
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|
|