]> git.lizzy.rs Git - rust.git/blob - tests/ui/let_return.stderr
iterate List by value
[rust.git] / tests / ui / let_return.stderr
1 error: returning the result of a `let` binding from a block
2   --> $DIR/let_return.rs:7:5
3    |
4 LL |     let x = 5;
5    |     ---------- unnecessary `let` binding
6 LL |     x
7    |     ^
8    |
9    = note: `-D clippy::let-and-return` implied by `-D warnings`
10 help: return the expression directly
11    |
12 LL |     
13 LL |     5
14    |
15
16 error: returning the result of a `let` binding from a block
17   --> $DIR/let_return.rs:13:9
18    |
19 LL |         let x = 5;
20    |         ---------- unnecessary `let` binding
21 LL |         x
22    |         ^
23    |
24 help: return the expression directly
25    |
26 LL |         
27 LL |         5
28    |
29
30 error: aborting due to 2 previous errors
31