Disallow associated type constraints on negative bounds

This commit is contained in:
Michael Goulet 2023-04-25 05:47:05 +00:00
parent 6e01e910cb
commit 86f50b9f5c
6 changed files with 76 additions and 2 deletions

View file

@ -701,8 +701,6 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
let mut dup_bindings = FxHashMap::default();
for binding in &assoc_bindings {
// TODO: negative polarity can't have associated type bindings!
// Specify type to assert that error was already reported in `Err` case.
let _: Result<_, ErrorGuaranteed> = self.add_predicates_for_ast_type_binding(
hir_id,