]> git.lizzy.rs Git - rust.git/blob - tests/ui/try_err.stderr
Auto merge of #68717 - petrochenkov:stabexpat, r=varkor
[rust.git] / tests / ui / try_err.stderr
1 error: returning an `Err(_)` with the `?` operator
2   --> $DIR/try_err.rs:15: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:25: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:45: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:64: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:103:9
33    |
34 LL |         Err(foo!())?;
35    |         ^^^^^^^^^^^^ help: try this: `return Err(foo!())`
36
37 error: aborting due to 5 previous errors
38