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

18 lines
401 B
Text
Raw Normal View History

error: returning the result of a let binding from a block
--> $DIR/matches.rs:9:13
2018-10-06 16:18:06 +00:00
|
LL | let x = 3;
| ---------- unnecessary let binding
2018-12-27 15:57:55 +00:00
LL | x
2018-10-06 16:18:06 +00:00
| ^
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
help: return the expression directly
|
LL |
LL | 3
2018-10-06 16:18:06 +00:00
|
error: aborting due to previous error