rust/tests/ui/try_err.stderr

79 lines
2.8 KiB
Plaintext
Raw Normal View History

2019-06-22 15:34:07 -05:00
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:19: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
--> $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
--> $DIR/try_err.rs:29: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
--> $DIR/try_err.rs:49: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
--> $DIR/try_err.rs:68: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
--> $DIR/try_err.rs:88:23
|
LL | Err(_) => Err(1)?,
| ^^^^^^^ help: try this: `return Err(1)`
|
= note: this error originates in the macro `__inline_mac_fn_calling_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:95:23
|
LL | Err(_) => Err(inline!(1))?,
| ^^^^^^^^^^^^^^^^ help: try this: `return Err(inline!(1))`
|
= note: this error originates in the macro `__inline_mac_fn_calling_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:122:9
2019-08-08 07:33:34 -05:00
|
LL | Err(inline!(inline!(String::from("aasdfasdfasdfa"))))?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Err(inline!(inline!(String::from("aasdfasdfasdfa"))))`
2019-08-08 07:33:34 -05:00
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:129: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:131: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:139:9
|
LL | Err(io::ErrorKind::NotFound)?
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:148:16
|
LL | return Err(42)?;
| ^^^^^^^^ help: try this: `Err(42)`
error: aborting due to 11 previous errors
2019-06-18 22:22:51 -05:00