]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/try_err.stderr
Auto merge of #78448 - rylev:cache-foreign_modules, r=wesleywiser
[rust.git] / src / tools / clippy / tests / ui / try_err.stderr
1 error: returning an `Err(_)` with the `?` operator
2   --> $DIR/try_err.rs:18:9
3    |
4 LL |         Err(err)?;
5    |         ^^^^^^^^^ help: try this: `return Err(err)`
6    |
7 note: the lint level is defined here
8   --> $DIR/try_err.rs:4:9
9    |
10 LL | #![deny(clippy::try_err)]
11    |         ^^^^^^^^^^^^^^^
12
13 error: returning an `Err(_)` with the `?` operator
14   --> $DIR/try_err.rs:28:9
15    |
16 LL |         Err(err)?;
17    |         ^^^^^^^^^ help: try this: `return Err(err.into())`
18
19 error: returning an `Err(_)` with the `?` operator
20   --> $DIR/try_err.rs:48:17
21    |
22 LL |                 Err(err)?;
23    |                 ^^^^^^^^^ help: try this: `return Err(err)`
24
25 error: returning an `Err(_)` with the `?` operator
26   --> $DIR/try_err.rs:67:17
27    |
28 LL |                 Err(err)?;
29    |                 ^^^^^^^^^ help: try this: `return Err(err.into())`
30
31 error: returning an `Err(_)` with the `?` operator
32   --> $DIR/try_err.rs:106:9
33    |
34 LL |         Err(foo!())?;
35    |         ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
36
37 error: returning an `Err(_)` with the `?` operator
38   --> $DIR/try_err.rs:113:9
39    |
40 LL |         Err(io::ErrorKind::WriteZero)?
41    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Err(io::ErrorKind::WriteZero.into()))`
42
43 error: returning an `Err(_)` with the `?` operator
44   --> $DIR/try_err.rs:115:9
45    |
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")))`
48
49 error: returning an `Err(_)` with the `?` operator
50   --> $DIR/try_err.rs:123:9
51    |
52 LL |         Err(io::ErrorKind::NotFound)?
53    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `return Poll::Ready(Some(Err(io::ErrorKind::NotFound.into())))`
54
55 error: aborting due to 8 previous errors
56