]> git.lizzy.rs Git - rust.git/blob - tests/ui/let_return.stderr
Adapt the *.stderr files of the ui-tests to the tool_lints
[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:10:5
3    |
4 10 |     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:9:13
10    |
11 9  |     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:16:9
16    |
17 16 |         x
18    |         ^
19    |
20 note: this expression can be directly returned
21   --> $DIR/let_return.rs:15:17
22    |
23 15 |         let x = 5;
24    |                 ^
25
26 error: aborting due to 2 previous errors
27