This commit is contained in:
HMPerson1 2017-10-20 21:26:41 -04:00
parent 7d7fef1690
commit 5fca6eb89e
2 changed files with 5 additions and 0 deletions

View File

@ -132,6 +132,7 @@ fn is_unit_expr(expr: &Expr) -> Option<Span> {
}
fn check_last_stmt_in_block(block: &Block) -> bool {
if block.stmts.is_empty() { return false; }
let final_stmt = &block.stmts[block.stmts.len() - 1];

View File

@ -71,3 +71,7 @@ pub fn foo() -> i32 {
};
55
}
pub fn issue_2160() {
let x = {};
}