]> git.lizzy.rs Git - rust.git/blob - tests/ui/try_err.stderr
Adding try_err lint
[rust.git] / tests / ui / try_err.stderr
1 error: confusing error return, consider using `return Err(err)`
2   --> $DIR/try_err.rs:7:5
3    |
4 LL |     Err(err)?;
5    |     ^^^^^^^^^ help: try this: `return Err(err)`
6    |
7 note: lint level defined here
8   --> $DIR/try_err.rs:1:9
9    |
10 LL | #![deny(clippy::try_err)]
11    |         ^^^^^^^^^^^^^^^
12
13 error: confusing error return, consider using `return Err(err.into())`
14   --> $DIR/try_err.rs:14:5
15    |
16 LL |     Err(err)?;
17    |     ^^^^^^^^^ help: try this: `return Err(err.into())`
18
19 error: confusing error return, consider using `return Err(err)`
20   --> $DIR/try_err.rs:31:13
21    |
22 LL |             Err(err)?;
23    |             ^^^^^^^^^ help: try this: `return Err(err)`
24
25 error: confusing error return, consider using `return Err(err.into())`
26   --> $DIR/try_err.rs:46:13
27    |
28 LL |             Err(err)?;
29    |             ^^^^^^^^^ help: try this: `return Err(err.into())`
30
31 error: aborting due to 4 previous errors
32