28 lines
697 B
Plaintext
28 lines
697 B
Plaintext
error: returning the result of a let binding from a block. Consider returning the expression directly.
|
|
--> $DIR/let_return.rs:10:5
|
|
|
|
|
10 | x
|
|
| ^
|
|
|
|
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
|
|
note: this expression can be directly returned
|
|
--> $DIR/let_return.rs:9:13
|
|
|
|
|
9 | let x = 5;
|
|
| ^
|
|
|
|
error: returning the result of a let binding from a block. Consider returning the expression directly.
|
|
--> $DIR/let_return.rs:16:9
|
|
|
|
|
16 | x
|
|
| ^
|
|
|
|
|
note: this expression can be directly returned
|
|
--> $DIR/let_return.rs:15:17
|
|
|
|
|
15 | let x = 5;
|
|
| ^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|