2018-05-11 12:05:34 -05:00
|
|
|
error: returning the result of a let binding from a block. Consider returning the expression directly.
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/matches.rs:9:13
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | x
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
|
2018-05-11 12:05:34 -05:00
|
|
|
note: this expression can be directly returned
|
2019-01-07 15:33:18 -06:00
|
|
|
--> $DIR/matches.rs:8:21
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let x = 3;
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^
|
2018-05-11 12:05:34 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|