]> git.lizzy.rs Git - rust.git/blob - tests/ui/author.stdout
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / author.stdout
1 if let StmtKind::Local(local) = stmt.kind
2     && let Some(init) = local.init
3     && let ExprKind::Cast(expr, cast_ty) = init.kind
4     && let TyKind::Path(ref qpath) = cast_ty.kind
5     && match_qpath(qpath, &["char"])
6     && let ExprKind::Lit(ref lit) = expr.kind
7     && let LitKind::Int(69, LitIntType::Unsuffixed) = lit.node
8     && let PatKind::Binding(BindingAnnotation::NONE, _, name, None) = local.pat.kind
9     && name.as_str() == "x"
10 {
11     // report your lint here
12 }