mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
fix: correctly parse use
in generic parameters
This commit is contained in:
parent
e1a76671af
commit
e735906839
3 changed files with 29 additions and 1 deletions
|
@ -145,7 +145,7 @@ fn type_bound(p: &mut Parser<'_>) -> bool {
|
|||
T![for] => types::for_type(p, false),
|
||||
// test precise_capturing
|
||||
// fn captures<'a: 'a, 'b: 'b, T>() -> impl Sized + use<'b, T> {}
|
||||
T![use] => {
|
||||
T![use] if p.nth_at(1, T![<]) => {
|
||||
p.bump_any();
|
||||
generic_param_list(p)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue