Disallow associated type constraints on negative bounds
This commit is contained in:
parent
6e01e910cb
commit
86f50b9f5c
6 changed files with 76 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue