Skip to content

Commit

Permalink
Fix #57730
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Jan 30, 2019
1 parent c1c3c4e commit e6d5f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_passes/ast_validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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_));
}
}
}
Expand Down

0 comments on commit e6d5f25

Please sign in to comment.