rust-clippy/tests/ui/is_unit_expr.stderr
2017-09-03 10:39:28 -07:00

19 lines
418 B
Text

error: This expression assigns the Unit type ()
--> $DIR/is_unit_expr.rs:8:13
|
8 | let x = {
| _____________^
9 | | "foo";
10 | | "baz";
11 | | };
| |_____^
|
= note: `-D unit-expr` implied by `-D warnings`
note: Consider removing the trailing semicolon
--> $DIR/is_unit_expr.rs:10:9
|
10 | "baz";
| ^^^^^^
error: aborting due to previous error