-error: unknown lint: `unit_expr`
- --> $DIR/is_unit_expr.rs:4:8
- |
-4 | #[warn(unit_expr)]
- | ^^^^^^^^^
- |
- = note: `-D unknown-lints` implied by `-D warnings`
+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: unknown lint: `no_effect`
- --> $DIR/is_unit_expr.rs:6:9
- |
-6 | #[allow(no_effect)]
- | ^^^^^^^^^
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error