diff options
| author | winstxnhdw <winstxnhdw@gmail.com> | 2024-07-22 22:51:09 +0100 |
|---|---|---|
| committer | winstxnhdw <winstxnhdw@gmail.com> | 2024-07-23 22:36:46 +0100 |
| commit | 243b68def069fe886b91b57878cfd12a091bb653 (patch) | |
| tree | d1a813b8adfeae0250ad8f8fd70c3e23f18869ec | |
| parent | 3a2f250d338574acc02245d9638469a29e27bf29 (diff) | |
| download | rust-243b68def069fe886b91b57878cfd12a091bb653.tar.gz rust-243b68def069fe886b91b57878cfd12a091bb653.zip | |
feat: add arm for `use` type bound
| -rw-r--r-- | src/tools/rust-analyzer/crates/parser/src/grammar/generic_params.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/parser/src/grammar/generic_params.rs b/src/tools/rust-analyzer/crates/parser/src/grammar/generic_params.rs index 6c05abc0238..b653d8e060c 100644 --- a/src/tools/rust-analyzer/crates/parser/src/grammar/generic_params.rs +++ b/src/tools/rust-analyzer/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) { |
