Unnamed repository; edit this file 'description' to name the repository.
feat: add arm for `use` type bound
winstxnhdw 2024-07-24
parent fa3484f · commit 61b2323
-rw-r--r--crates/parser/src/grammar/generic_params.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/parser/src/grammar/generic_params.rs b/crates/parser/src/grammar/generic_params.rs
index 6c05abc023..b653d8e060 100644
--- a/crates/parser/src/grammar/generic_params.rs
+++ b/crates/parser/src/grammar/generic_params.rs
@@ -167,6 +167,12 @@ fn type_bound(p: &mut Parser<'_>) -> bool {
T![async] => {
p.bump_any();
}
+ // test precise_capturing
+ // fn captures<'a: 'a, 'b: 'b, T>() -> impl Sized + use<'b, T> {}
+ T![use] => {
+ p.bump_any();
+ generic_param_list(p);
+ }
_ => (),
}
if paths::is_use_path_start(p) {