mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
16 lines
398 B
Text
16 lines
398 B
Text
|
error: returning the result of a let binding from a block. Consider returning the expression directly.
|
||
|
--> $DIR/matches.rs:9:13
|
||
|
|
|
||
|
9 | x
|
||
|
| ^
|
||
|
|
|
||
|
= note: `-D let-and-return` implied by `-D warnings`
|
||
|
note: this expression can be directly returned
|
||
|
--> $DIR/matches.rs:8:21
|
||
|
|
|
||
|
8 | let x = 3;
|
||
|
| ^
|
||
|
|
||
|
error: aborting due to previous error
|
||
|
|