Skip to content

Commit bd34826

Browse files
committed
simplify check_pat_tuple_struct
1 parent bd15684 commit bd34826

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/check

1 file changed

+1
-1
lines changed

src/librustc_typeck/check/pat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
835835
on_error();
836836
return tcx.types.err;
837837
}
838-
Res::Def(DefKind::AssocConst, _) | Res::Def(DefKind::AssocFn, _) => {
838+
Res::Def(DefKind::AssocConst | DefKind::AssocFn, _) => {
839839
report_unexpected_res(res);
840840
return tcx.types.err;
841841
}

0 commit comments

Comments
 (0)