2019-06-22 20:34:07 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:22:9
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:3: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
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:32:9
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:52:17
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:71:17
|
2019-06-19 03:22:51 +00:00
|
|
|
|
|
2019-06-25 01:28:46 +00:00
|
|
|
LL | Err(err)?;
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^ help: try: `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
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:91:23
|
2020-11-23 12:51:04 +00:00
|
|
|
|
|
|
|
|
LL | Err(_) => Err(1)?,
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^ help: try: `return Err(1)`
|
2020-11-23 12:51:04 +00:00
|
|
|
|
|
2023-03-07 14:40:55 +00: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 12:51:04 +00:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:98:23
|
2020-11-23 12:51:04 +00:00
|
|
|
|
|
2023-03-07 14:40:55 +00:00
|
|
|
LL | Err(_) => Err(inline!(1))?,
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^ help: try: `return Err(inline!(1))`
|
2020-11-23 12:51:04 +00:00
|
|
|
|
|
2023-03-07 14:40:55 +00: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 12:51:04 +00:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:125:9
|
2019-08-08 12:33:34 +00:00
|
|
|
|
|
2023-03-07 14:40:55 +00:00
|
|
|
LL | Err(inline!(inline!(String::from("aasdfasdfasdfa"))))?;
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Err(inline!(inline!(String::from("aasdfasdfasdfa"))))`
|
2019-08-08 12:33:34 +00:00
|
|
|
|
2020-08-11 13:43:21 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:132:9
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | Err(io::ErrorKind::WriteZero)?
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))`
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:134:9
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | Err(io::Error::new(io::ErrorKind::InvalidInput, "error"))?
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Err(io::Error::new(io::ErrorKind::InvalidInput, "error")))`
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:142:9
|
2020-08-11 13:43:21 +00:00
|
|
|
|
|
|
|
|
LL | Err(io::ErrorKind::NotFound)?
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
|
2020-08-11 13:43:21 +00:00
|
|
|
|
2021-04-22 09:31:13 +00:00
|
|
|
error: returning an `Err(_)` with the `?` operator
|
2023-07-27 11:40:22 +00:00
|
|
|
--> $DIR/try_err.rs:151:16
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
|
LL | return Err(42)?;
|
2023-07-01 11:08:01 +00:00
|
|
|
| ^^^^^^^^ help: try: `Err(42)`
|
2021-04-22 09:31:13 +00:00
|
|
|
|
|
|
|
error: aborting due to 11 previous errors
|
2019-06-19 03:22:51 +00:00
|
|
|
|