We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ast::GenericParamList
1 parent 5af51fa commit d42e857Copy full SHA for d42e857
crates/syntax/src/ast/node_ext.rs
@@ -794,6 +794,8 @@ pub enum TypeBoundKind {
794
PathType(ast::PathType),
795
/// for<'a> ...
796
ForType(ast::ForType),
797
+ /// use
798
+ Use(ast::GenericParamList),
799
/// 'a
800
Lifetime(ast::Lifetime),
801
}
@@ -804,6 +806,8 @@ impl ast::TypeBound {
804
806
TypeBoundKind::PathType(path_type)
805
807
} else if let Some(for_type) = support::children(self.syntax()).next() {
808
TypeBoundKind::ForType(for_type)
809
+ } else if let Some(generic_param_list) = self.generic_param_list() {
810
+ TypeBoundKind::Use(generic_param_list)
811
} else if let Some(lifetime) = self.lifetime() {
812
TypeBoundKind::Lifetime(lifetime)
813
} else {
0 commit comments