mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
feat: add arm for use
type bound
This commit is contained in:
parent
fa3484f39f
commit
61b232369b
1 changed files with 6 additions and 0 deletions
|
@ -167,6 +167,12 @@ fn type_bound(p: &mut Parser<'_>) -> bool {
|
||||||
T![async] => {
|
T![async] => {
|
||||||
p.bump_any();
|
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) {
|
if paths::is_use_path_start(p) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue