fix: handle new TypeBoundKind variant

This commit is contained in:
Winston H. 2024-07-25 10:58:25 +00:00
parent d42e85758c
commit 9f74787d5d

View File

@ -379,6 +379,7 @@ impl TypeBound {
None => TypeBound::Error,
}
}
ast::TypeBoundKind::Use(_) => TypeBound::Error,
ast::TypeBoundKind::Lifetime(lifetime) => {
TypeBound::Lifetime(LifetimeRef::new(&lifetime))
}