mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-26 04:17:21 +00:00
19 lines
418 B
Text
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
|
|
|