Thanks to visit codestin.com Credit goes to github.com
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 23822a3 commit 69e237dCopy full SHA for 69e237d
compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs
@@ -781,6 +781,10 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
781
rustc_ast::BoundPolarity::Positive => ty::PredicatePolarity::Positive,
782
rustc_ast::BoundPolarity::Negative(_) => ty::PredicatePolarity::Negative,
783
rustc_ast::BoundPolarity::Maybe(_) => {
784
+ // FIXME(fmease): Validate *here* that `?` can only be applied to
785
+ // `Sized` (or `X` where `X` is a default trait under
786
+ // `more_maybe_bounds`).
787
+
788
// Validate associated type at least. We may want to reject these
789
// outright in the future...
790
for constraint in trait_segment.args().constraints {
0 commit comments