]> git.lizzy.rs Git - rust.git/blob - tests/ui/let_return.stderr
Merge branch 'master' into rustfmt_tests
[rust.git] / tests / ui / let_return.stderr
1 error: returning the result of a let binding from a block. Consider returning the expression directly.
2   --> $DIR/let_return.rs:16:5
3    |
4 16 |     x
5    |     ^
6    |
7    = note: `-D clippy::let-and-return` implied by `-D warnings`
8 note: this expression can be directly returned
9   --> $DIR/let_return.rs:15:13
10    |
11 15 |     let x = 5;
12    |             ^
13
14 error: returning the result of a let binding from a block. Consider returning the expression directly.
15   --> $DIR/let_return.rs:22:9
16    |
17 22 |         x
18    |         ^
19    |
20 note: this expression can be directly returned
21   --> $DIR/let_return.rs:21:17
22    |
23 21 |         let x = 5;
24    |                 ^
25
26 error: aborting due to 2 previous errors
27