Impl ConstParamTy for tuples, make PartialStructuralEq a supertrait too
This commit is contained in:
parent
8ab10bacdf
commit
a9fcb524ff
7 changed files with 68 additions and 7 deletions
|
@ -100,7 +100,8 @@ pub fn type_allowed_to_implement_const_param_ty<'tcx>(
|
|||
| ty::Str
|
||||
| ty::Array(..)
|
||||
| ty::Slice(_)
|
||||
| ty::Ref(.., hir::Mutability::Not) => return Ok(()),
|
||||
| ty::Ref(.., hir::Mutability::Not)
|
||||
| ty::Tuple(_) => return Ok(()),
|
||||
|
||||
&ty::Adt(adt, substs) => (adt, substs),
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue