rust-clippy/tests/ui/author/matches.stderr

16 lines
418 B
Text
Raw Normal View History

error: returning the result of a let binding from a block. Consider returning the expression directly.
2018-10-06 16:18:06 +00:00
--> $DIR/matches.rs:19:13
|
19 | x
| ^
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
note: this expression can be directly returned
2018-10-06 16:18:06 +00:00
--> $DIR/matches.rs:18:21
|
18 | let x = 3;
| ^
error: aborting due to previous error