1
Fork 0

Parse inner attributes on inline const block

This commit is contained in:
David Tolnay 2022-03-15 17:20:21 -07:00
parent 52b34550ac
commit f427698c03
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
4 changed files with 26 additions and 6 deletions

View file

@ -960,7 +960,7 @@ impl<'a> State<'a> {
self.word_space("=");
match term {
Term::Ty(ty) => self.print_type(ty),
Term::Const(c) => self.print_expr_anon_const(c),
Term::Const(c) => self.print_expr_anon_const(c, &[]),
}
}
ast::AssocConstraintKind::Bound { bounds } => self.print_type_bounds(":", &*bounds),