pub fn type_alias_trait_clauses<'tcx>(
tcx: TyCtxt<'tcx>,
alias_ty: Ty<'tcx>,
) -> Vec<Clause<'tcx>>Expand description
Collects the trait clauses needed to make a type alias well-formed, as Rust itself does not require type aliases to declare the clauses they use.