]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/crashes/ice-8850.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / crashes / ice-8850.stderr
1 error: returning the result of a `let` binding from a block
2 --> $DIR/ice-8850.rs:4:5
3 |
4 LL | let res = FN() + 1;
5 | ------------------- unnecessary `let` binding
6 LL | res
7 | ^^^
8 |
9 = note: `-D clippy::let-and-return` implied by `-D warnings`
10 help: return the expression directly
11 |
12 LL ~
13 LL ~ FN() + 1
14 |
15
16 error: returning the result of a `let` binding from a block
17 --> $DIR/ice-8850.rs:10:5
18 |
19 LL | let res = FN() + 1;
20 | ------------------- unnecessary `let` binding
21 LL | res
22 | ^^^
23 |
24 help: return the expression directly
25 |
26 LL ~
27 LL ~ FN() + 1
28 |
29
30 error: returning the result of a `let` binding from a block
31 --> $DIR/ice-8850.rs:24:5
32 |
33 LL | let res = FN() + 1;
34 | ------------------- unnecessary `let` binding
35 LL | res
36 | ^^^
37 |
38 help: return the expression directly
39 |
40 LL ~
41 LL ~ FN() + 1
42 |
43
44 error: aborting due to 3 previous errors
45