mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
Update ui test
This commit is contained in:
parent
e2bc383383
commit
c2c324ec65
1 changed files with 18 additions and 0 deletions
|
@ -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 => {}, };
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
|
Loading…
Reference in a new issue