1 error: returning an `Err(_)` with the `?` operator
2 --> $DIR/try_err.rs:18: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:28:9
17 | ^^^^^^^^^ help: try this: `return Err(err.into())`
19 error: returning an `Err(_)` with the `?` operator
20 --> $DIR/try_err.rs:48:17
23 | ^^^^^^^^^ help: try this: `return Err(err)`
25 error: returning an `Err(_)` with the `?` operator
26 --> $DIR/try_err.rs:67:17
29 | ^^^^^^^^^ help: try this: `return Err(err.into())`
31 error: returning an `Err(_)` with the `?` operator
32 --> $DIR/try_err.rs:106:9
35 | ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
37 error: returning an `Err(_)` with the `?` operator
38 --> $DIR/try_err.rs:113:9
40 LL | Err(io::ErrorKind::WriteZero)?
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))`
43 error: returning an `Err(_)` with the `?` operator
44 --> $DIR/try_err.rs:115:9
46 LL | Err(io::Error::new(io::ErrorKind::InvalidInput, "error"))?
47 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::Error::new(io::ErrorKind::InvalidInput, "error")))`
49 error: returning an `Err(_)` with the `?` operator
50 --> $DIR/try_err.rs:123:9
52 LL | Err(io::ErrorKind::NotFound)?
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
55 error: aborting due to 8 previous errors