rust/tests/ui/author/blocks.stdout

14 lines
256 B
Plaintext
Raw Normal View History

2019-05-19 09:52:44 -05:00
if_chain! {
if let ExprKind::Block(ref block) = expr.node;
if let Some(trailing_expr) = &block.expr;
if block.stmts.len() == 0;
then {
// report your lint here
}
}
if_chain! {
then {
// report your lint here
}
}