2019-06-22 15:34:07 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:23:9
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:33:9
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:53:17
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:72:17
|
2019-06-18 22:22:51 -05:00
|
|
|
|
|
2019-06-24 20:28:46 -05:00
|
|
|
LL | Err(err)?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:92:23
|
2020-11-23 06:51:04 -06:00
|
|
|
|
|
|
|
|
LL | Err(_) => Err(1)?,
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^ help: try: `return Err(1)`
|
2020-11-23 06:51:04 -06:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_calling_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-11-23 06:51:04 -06:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:99:23
|
2020-11-23 06:51:04 -06:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
LL | Err(_) => Err(inline!(1))?,
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `return Err(inline!(1))`
|
2020-11-23 06:51:04 -06:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
= note: this error originates in the macro `__inline_mac_fn_calling_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2020-11-23 06:51:04 -06:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:126:9
|
2019-08-08 07:33:34 -05:00
|
|
|
|
|
2023-03-07 08:40:55 -06:00
|
|
|
LL | Err(inline!(inline!(String::from("aasdfasdfasdfa"))))?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Err(inline!(inline!(String::from("aasdfasdfasdfa"))))`
|
2019-08-08 07:33:34 -05:00
|
|
|
|
2020-08-11 08:43:21 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:133:9
|
2020-08-11 08:43:21 -05:00
|
|
|
|
|
|
|
|
LL | Err(io::ErrorKind::WriteZero)?
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))`
|
2020-08-11 08:43:21 -05:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:135:9
|
2020-08-11 08:43:21 -05:00
|
|
|
|
|
|
|
|
LL | Err(io::Error::new(io::ErrorKind::InvalidInput, "error"))?
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Err(io::Error::new(io::ErrorKind::InvalidInput, "error")))`
|
2020-08-11 08:43:21 -05:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:143:9
|
2020-08-11 08:43:21 -05:00
|
|
|
|
|
|
|
|
LL | Err(io::ErrorKind::NotFound)?
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
|
2020-08-11 08:43:21 -05:00
|
|
|
|
2021-04-22 04:31:13 -05:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-06-26 00:44:17 -05:00
|
|
|
--> $DIR/try_err.rs:152:16
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | return Err(42)?;
|
2023-07-01 06:08:01 -05:00
|
|
|
| ^^^^^^^^ help: try: `Err(42)`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2019-06-18 22:22:51 -05:00
|
|
|
|