Fix display of use<> syntax

This commit is contained in:
Chayim Refael Friedman 2025-07-11 00:08:24 +03:00
parent 4b506ca0e1
commit e6a8a133bf

View file

@ -2328,6 +2328,7 @@ impl HirDisplayWithExpressionStore for TypeBound {
store[*path].hir_fmt(f, store)
}
TypeBound::Use(args) => {
write!(f, "use<")?;
let edition = f.edition();
let last = args.len().saturating_sub(1);
for (idx, arg) in args.iter().enumerate() {