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