2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-29 06:23:21 +00:00
rust-clippy/tests/ui/author/matches.stderr
2019-01-08 21:46:39 +01:00

15 lines
416 B
Text

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