Add another test case + fmt
This commit is contained in:
parent
49ac725d51
commit
146abdd119
4 changed files with 94 additions and 14 deletions
|
@ -119,10 +119,8 @@ impl Qualif for NeedsNonConstDrop {
|
|||
// without having the lang item present.
|
||||
return false;
|
||||
};
|
||||
let trait_ref = ty::TraitRef {
|
||||
def_id: drop_trait,
|
||||
substs: cx.tcx.mk_substs_trait(ty, &[]),
|
||||
};
|
||||
let trait_ref =
|
||||
ty::TraitRef { def_id: drop_trait, substs: cx.tcx.mk_substs_trait(ty, &[]) };
|
||||
let obligation = Obligation::new(
|
||||
ObligationCause::dummy(),
|
||||
cx.param_env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue