mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
16 lines
416 B
Plaintext
16 lines
416 B
Plaintext
error: returning the result of a let binding from a block. Consider returning the expression directly.
|
|
--> $DIR/matches.rs:9:13
|
|
|
|
|
LL | x
|
|
| ^
|
|
|
|
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
|
|
note: this expression can be directly returned
|
|
--> $DIR/matches.rs:8:21
|
|
|
|
|
LL | let x = 3;
|
|
| ^
|
|
|
|
error: aborting due to previous error
|
|
|