From c2c324ec657888667a71f361f3cdca48ff843a61 Mon Sep 17 00:00:00 2001 From: HMPerson1 Date: Thu, 30 Nov 2017 19:50:31 -0500 Subject: [PATCH] Update ui test --- tests/ui/is_unit_expr.stderr | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/ui/is_unit_expr.stderr b/tests/ui/is_unit_expr.stderr index 5524f8664..64a7ad86b 100644 --- a/tests/ui/is_unit_expr.stderr +++ b/tests/ui/is_unit_expr.stderr @@ -51,3 +51,21 @@ note: Consider removing the trailing semicolon 42 | x; | ^^ +error: This expression evaluates to the Unit type () + --> $DIR/is_unit_expr.rs:76:14 + | +76 | let x1 = {}; + | ^^ + +error: This expression evaluates to the Unit type () + --> $DIR/is_unit_expr.rs:77:14 + | +77 | let x2 = if true {} else {}; + | ^^^^^^^^^^^^^^^^^^ + +error: This expression evaluates to the Unit type () + --> $DIR/is_unit_expr.rs:78:14 + | +78 | let x3 = match None { Some(_) => {}, None => {}, }; + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +