rust/tests/ui/let_return.stderr
2018-12-10 08:22:07 +01:00

28 lines
698 B
Plaintext

error: returning the result of a let binding from a block. Consider returning the expression directly.
--> $DIR/let_return.rs:16:5
|
16 | x
| ^
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
note: this expression can be directly returned
--> $DIR/let_return.rs:15:13
|
15 | let x = 5;
| ^
error: returning the result of a let binding from a block. Consider returning the expression directly.
--> $DIR/let_return.rs:22:9
|
22 | x
| ^
|
note: this expression can be directly returned
--> $DIR/let_return.rs:21:17
|
21 | let x = 5;
| ^
error: aborting due to 2 previous errors