Skip to content

Commit

Permalink
simplify check_pat_tuple_struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Mar 25, 2020
1 parent bd15684 commit bd34826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/pat.rs
Expand Up @@ -835,7 +835,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
on_error();
return tcx.types.err;
}
Res::Def(DefKind::AssocConst, _) | Res::Def(DefKind::AssocFn, _) => {
Res::Def(DefKind::AssocConst | DefKind::AssocFn, _) => {
report_unexpected_res(res);
return tcx.types.err;
}
Expand Down

0 comments on commit bd34826

Please sign in to comment.