We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b539b0 commit 4231661Copy full SHA for 4231661
compiler/rustc_trait_selection/src/traits/wf.rs
@@ -392,7 +392,8 @@ impl<'tcx> WfPredicates<'tcx> {
392
// `i32: Clone`
393
// `i32: Copy`
394
// ]
395
- let obligations = self.nominal_obligations(data.item_def_id, data.substs);
+ // Projection types do not require const predicates.
396
+ let obligations = self.nominal_obligations_without_const(data.item_def_id, data.substs);
397
self.out.extend(obligations);
398
399
let tcx = self.tcx();
0 commit comments