]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/author.stdout
Auto merge of #97944 - nikic:freebsd-update, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / author.stdout
1 if_chain! {
2     if let StmtKind::Local(local) = stmt.kind;
3     if let Some(init) = local.init;
4     if let ExprKind::Cast(expr, cast_ty) = init.kind;
5     if let TyKind::Path(ref qpath) = cast_ty.kind;
6     if match_qpath(qpath, &["char"]);
7     if let ExprKind::Lit(ref lit) = expr.kind;
8     if let LitKind::Int(69, LitIntType::Unsuffixed) = lit.node;
9     if let PatKind::Binding(BindingAnnotation::Unannotated, _, name, None) = local.pat.kind;
10     if name.as_str() == "x";
11     then {
12         // report your lint here
13     }
14 }