2019-06-22 20:34:07 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-10-24 05:52:01 +00:00
|
|
|
--> $DIR/try_err.rs:15:9
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2020-01-31 19:21:10 +00:00
|
|
|
note: the lint level is defined here
|
2019-10-24 05:52:01 +00:00
|
|
|
--> $DIR/try_err.rs:4:9
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::try_err)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2019-06-22 20:34:07 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-10-24 05:52:01 +00:00
|
|
|
--> $DIR/try_err.rs:25:9
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
2019-06-19 03:22:51 +00:00
|
|
|
|
2019-06-22 20:34:07 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-10-24 05:52:01 +00:00
|
|
|
--> $DIR/try_err.rs:45:17
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
2019-06-19 03:22:51 +00:00
|
|
|
|
2019-06-22 20:34:07 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-10-24 05:52:01 +00:00
|
|
|
--> $DIR/try_err.rs:64:17
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
2019-06-19 03:22:51 +00:00
|
|
|
|
2019-08-08 12:33:34 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2019-10-24 05:52:01 +00:00
|
|
|
--> $DIR/try_err.rs:103:9
|
2019-08-08 12:33:34 +00:00
|
|
|
|
|
|
|
|
LL | Err(foo!())?;
|
|
|
|
| ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
2019-06-19 03:22:51 +00:00
|
|
|
|