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) {