2019-06-22 15:34:07 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2020-08-11 08:43:21 -05:00
|
|
|
--> $DIR/try_err.rs:18:9
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2020-01-31 13:21:10 -06:00
|
|
|
note: the lint level is defined here
|
2019-10-24 00:52:01 -05:00
|
|
|
--> $DIR/try_err.rs:4:9
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(clippy::try_err)]
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2019-06-22 15:34:07 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2020-08-11 08:43:21 -05:00
|
|
|
--> $DIR/try_err.rs:28:9
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
2019-06-18 22:22:51 -05:00
|
|
|
|
2019-06-22 15:34:07 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2020-08-11 08:43:21 -05:00
|
|
|
--> $DIR/try_err.rs:48:17
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err)`
|
2019-06-18 22:22:51 -05:00
|
|
|
|
2019-06-22 15:34:07 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2020-08-11 08:43:21 -05:00
|
|
|
--> $DIR/try_err.rs:67:17
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
|
|
|
| ^^^^^^^^^ help: try this: `return Err(err.into())`
|
2019-06-18 22:22:51 -05:00
|
|
|
|
2019-08-08 07:33:34 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2020-08-11 08:43:21 -05:00
|
|
|
--> $DIR/try_err.rs:106:9
|
2019-08-08 07:33:34 -05:00
|
|
|
|
|
|
|
|
LL | Err(foo!())?;
|
|
|
|
| ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
|
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
|
|
--> $DIR/try_err.rs:113:9
|
|
|
|
|
|
|
|
|
LL | Err(io::ErrorKind::WriteZero)?
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))`
|
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
|
|
--> $DIR/try_err.rs:115:9
|
|
|
|
|
|
|
|
|
LL | Err(io::Error::new(io::ErrorKind::InvalidInput, "error"))?
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::Error::new(io::ErrorKind::InvalidInput, "error")))`
|
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
|
|
|
--> $DIR/try_err.rs:123:9
|
|
|
|
|
|
|
|
|
LL | Err(io::ErrorKind::NotFound)?
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
|
|
|
|
|
|
|
|
error: aborting due to 8 previous errors
|
2019-06-18 22:22:51 -05:00
|
|
|
|