2019-05-24 14:09:43 -04:00
|
|
|
error: returning the result of a let binding from a block
|
2019-01-07 22:33:18 +01:00
|
|
|
--> $DIR/matches.rs:9:13
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2019-05-24 14:09:43 -04:00
|
|
|
LL | let x = 3;
|
|
|
|
| ---------- unnecessary let binding
|
2018-12-27 16:57:55 +01:00
|
|
|
LL | x
|
2018-10-06 09:18:06 -07:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
|
2019-05-24 14:09:43 -04:00
|
|
|
help: return the expression directly
|
|
|
|
|
|
|
|
|
LL |
|
|
|
|
LL | 3
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2018-05-11 19:05:34 +02:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|