rust-clippy/tests/ui/author/blocks.stdout

14 lines
256 B
Text
Raw Normal View History

2019-05-19 14:52:44 +00:00
if_chain! {
2019-09-27 15:16:06 +00:00
if let ExprKind::Block(ref block) = expr.kind;
2019-05-19 14:52:44 +00:00
if let Some(trailing_expr) = &block.expr;
2020-03-03 23:54:27 +00:00
if block.stmts.len() == 0;
2019-05-19 14:52:44 +00:00
then {
// report your lint here
}
}
if_chain! {
then {
// report your lint here
}
}