Fix #57730
This commit is contained in:
parent
c1c3c4e95b
commit
e6d5f251f1
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
|
|||
if let Some(ref type_) = data.output {
|
||||
// `-> Foo` syntax is essentially an associated type binding,
|
||||
// so it is also allowed to contain nested `impl Trait`.
|
||||
self.with_impl_trait(None, |this| visit::walk_ty(this, type_));
|
||||
self.with_impl_trait(None, |this| this.visit_ty(type_));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue