Skip to content

Commit 9f74787

Browse files
committed
fix: handle new TypeBoundKind variant
1 parent d42e857 commit 9f74787

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/hir-def/src/hir/type_ref.rs

+1
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ impl TypeBound {
379379
None => TypeBound::Error,
380380
}
381381
}
382+
ast::TypeBoundKind::Use(_) => TypeBound::Error,
382383
ast::TypeBoundKind::Lifetime(lifetime) => {
383384
TypeBound::Lifetime(LifetimeRef::new(&lifetime))
384385
}

0 commit comments

Comments
 (0)