]> git.lizzy.rs Git - rust.git/blob - tests/ui/let_return.stderr
Auto merge of #3635 - matthiaskrgr:revert_random_state_3603, r=xfix
[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 LL |     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 LL |     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 LL |         x
18    |         ^
19    |
20 note: this expression can be directly returned
21   --> $DIR/let_return.rs:21:17
22    |
23 LL |         let x = 5;
24    |                 ^
25
26 error: aborting due to 2 previous errors
27