1
Fork 0

Review changes

This commit is contained in:
Jack Huey 2022-02-14 13:00:10 -05:00
parent c920eb88b2
commit 2b151fd5c8
8 changed files with 130 additions and 50 deletions

View file

@ -1275,10 +1275,14 @@ impl<'a> Visitor<'a> for AstValidator<'a> {
}
self.check_type_no_bounds(bounds, "this context");
if where_clauses.1.0 {
self.err_handler().span_err(
let mut err = self.err_handler().struct_span_err(
where_clauses.1.1,
"where clauses are not allowed after the type for type aliases",
)
);
err.note(
"see issue #89122 <https://github.com/rust-lang/rust/issues/89122> for more information",
);
err.emit();
}
}
_ => {}