rust/tests/ui/author/matches.stderr

16 lines
416 B
Text
Raw Normal View History

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