]> git.lizzy.rs Git - rust.git/blob - tests/ui/for_loop.stdout
Enable more patterns in the author lint
[rust.git] / tests / ui / for_loop.stdout
1 if_chain! {
2     if let Expr_::ExprBlock(ref block) = stmt.node;
3     if let Expr_::ExprMatch(ref expr, ref arms, MatchSource::ForLoopDesugar) = block.node;
4     // unimplemented: `ExprMatch` is not further destructured at the moment
5     if let Expr_::ExprPath(ref path) = block.node;
6     if match_qpath(path, &["_result"]);
7     then {
8         // report your lint here
9     }
10 }
11 if_chain! {
12     if let Expr_::ExprBlock(ref block) = expr.node;
13     if let Expr_::ExprMatch(ref expr, ref arms, MatchSource::ForLoopDesugar) = block.node;
14     // unimplemented: `ExprMatch` is not further destructured at the moment
15     if let Expr_::ExprPath(ref path) = block.node;
16     if match_qpath(path, &["_result"]);
17     then {
18         // report your lint here
19     }
20 }