]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/let_return.stderr
8136e6242ac21fc2359d2028c783329f32ee58bf
[rust.git] / clippy_tests / examples / let_return.stderr
1 error: returning the result of a let binding from a block. Consider returning the expression directly.
2   --> let_return.rs:10:5
3    |
4 10 |     x
5    |     ^
6    |
7    = note: `-D let-and-return` implied by `-D warnings`
8 note: this expression can be directly returned
9   --> 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   --> let_return.rs:16:9
16    |
17 16 |         x
18    |         ^
19    |
20    = note: `-D let-and-return` implied by `-D warnings`
21 note: this expression can be directly returned
22   --> let_return.rs:15:17
23    |
24 15 |         let x = 5;
25    |                 ^
26
27 error: aborting due to previous error(s)
28
29 error: Could not compile `clippy_tests`.
30
31 To learn more, run the command again with --verbose.