rust-clippy/tests/ui/author/blocks.stdout
2019-09-27 17:21:20 +02:00

16 lines
391 B
Text

if_chain! {
if let ExprKind::Block(ref block) = expr.kind;
if let Some(trailing_expr) = &block.expr;
if block.stmts.len() == 1;
if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
if let ExprKind::Tup(ref elements) = e.kind;
if elements.len() == 0;
then {
// report your lint here
}
}
if_chain! {
then {
// report your lint here
}
}