mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Use nominal_obligations_without_const in wf for FnDef
This commit is contained in:
@@ -547,7 +547,7 @@ fn compute(&mut self, arg: GenericArg<'tcx>) {
|
||||
}
|
||||
|
||||
ty::FnDef(did, substs) => {
|
||||
let obligations = self.nominal_obligations(did, substs);
|
||||
let obligations = self.nominal_obligations_without_const(did, substs);
|
||||
self.out.extend(obligations);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// check-pass
|
||||
const _: () = core::mem::forget(Box::<u32>::default);
|
||||
const _: () = core::mem::forget(|| Box::<u32>::default());
|
||||
|
||||
fn main() {}
|
||||
Reference in New Issue
Block a user