rust-clippy/tests/ui/try_err.stderr

68 lines
2.2 KiB
Text
Raw Normal View History

2019-06-22 20:34:07 +00:00
error: returning an `Err(_)` with the `?` operator
--> $DIR/try_err.rs:18: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
--> $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
--> $DIR/try_err.rs:28: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
--> $DIR/try_err.rs:48: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
--> $DIR/try_err.rs:67: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
--> $DIR/try_err.rs:86:23
|
LL | Err(_) => Err(1)?,
| ^^^^^^^ help: try this: `return Err(1)`
...
LL | try_validation!(Ok::<_, i32>(5));
| --------------------------------- in this macro invocation
|
= note: this error originates in a 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 12:33:34 +00:00
|
LL | Err(foo!())?;
| ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
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: aborting due to 9 previous errors
2019-06-19 03:22:51 +00:00