1 error: returning an `Err(_)` with the `?` operator
2 --> $DIR/try_err.rs:19:9
5 | ^^^^^^^^^ help: try this: `return Err(err)`
7 note: the lint level is defined here
8 --> $DIR/try_err.rs:4:9
10 LL | #![deny(clippy::try_err)]
13 error: returning an `Err(_)` with the `?` operator
14 --> $DIR/try_err.rs:29:9
17 | ^^^^^^^^^ help: try this: `return Err(err.into())`
19 error: returning an `Err(_)` with the `?` operator
20 --> $DIR/try_err.rs:49:17
23 | ^^^^^^^^^ help: try this: `return Err(err)`
25 error: returning an `Err(_)` with the `?` operator
26 --> $DIR/try_err.rs:68:17
29 | ^^^^^^^^^ help: try this: `return Err(err.into())`
31 error: returning an `Err(_)` with the `?` operator
32 --> $DIR/try_err.rs:87:23
34 LL | Err(_) => Err(1)?,
35 | ^^^^^^^ help: try this: `return Err(1)`
37 LL | try_validation!(Ok::<_, i32>(5));
38 | -------------------------------- in this macro invocation
40 = note: this error originates in the macro `try_validation` (in Nightly builds, run with -Z macro-backtrace for more info)
42 error: returning an `Err(_)` with the `?` operator
43 --> $DIR/try_err.rs:102:23
45 LL | Err(_) => Err(ret_one!())?,
46 | ^^^^^^^^^^^^^^^^ help: try this: `return Err(ret_one!())`
48 LL | try_validation_in_macro!(Ok::<_, i32>(5));
49 | ----------------------------------------- in this macro invocation
51 = note: this error originates in the macro `try_validation_in_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
53 error: returning an `Err(_)` with the `?` operator
54 --> $DIR/try_err.rs:141:9
57 | ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
59 error: returning an `Err(_)` with the `?` operator
60 --> $DIR/try_err.rs:148:9
62 LL | Err(io::ErrorKind::WriteZero)?
63 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))`
65 error: returning an `Err(_)` with the `?` operator
66 --> $DIR/try_err.rs:150:9
68 LL | Err(io::Error::new(io::ErrorKind::InvalidInput, "error"))?
69 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::Error::new(io::ErrorKind::InvalidInput, "error")))`
71 error: returning an `Err(_)` with the `?` operator
72 --> $DIR/try_err.rs:158:9
74 LL | Err(io::ErrorKind::NotFound)?
75 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
77 error: returning an `Err(_)` with the `?` operator
78 --> $DIR/try_err.rs:167:16
81 | ^^^^^^^^ help: try this: `Err(42)`
83 error: aborting due to 11 previous errors