2
0
Fork 0
mirror of https://github.com/rust-lang/rust-analyzer synced 2025-01-16 07:03:57 +00:00

feat: add arm for use type bound

This commit is contained in:
winstxnhdw 2024-07-22 22:51:09 +01:00
parent fa3484f39f
commit 61b232369b

View file

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