This commit is contained in:
John Kåre Alsaker 2019-01-30 00:50:27 +01:00
parent c1c3c4e95b
commit e6d5f251f1

View file

@ -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_));
}
}
}