Skip to content

Commit 243b68d

Browse files
committed
feat: add arm for use type bound
1 parent 3a2f250 commit 243b68d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/rust-analyzer/crates/parser/src/grammar/generic_params.rs

+6
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ fn type_bound(p: &mut Parser<'_>) -> bool {
167167
T![async] => {
168168
p.bump_any();
169169
}
170+
// test precise_capturing
171+
// fn captures<'a: 'a, 'b: 'b, T>() -> impl Sized + use<'b, T> {}
172+
T![use] => {
173+
p.bump_any();
174+
generic_param_list(p);
175+
}
170176
_ => (),
171177
}
172178
if paths::is_use_path_start(p) {

0 commit comments

Comments
 (0)