mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
assoc types bounds
This commit is contained in:
parent
fc40e42003
commit
d6ab1af086
3 changed files with 63 additions and 0 deletions
|
@ -35,6 +35,13 @@ fn type_arg(p: &mut Parser) {
|
|||
p.bump();
|
||||
m.complete(p, LIFETIME_ARG);
|
||||
}
|
||||
// test associated_type_bounds
|
||||
// fn print_all<T: Iterator<Item: Display>>(printables: T) {}
|
||||
IDENT if p.nth(1) == T![:] => {
|
||||
name_ref(p);
|
||||
type_params::bounds(p);
|
||||
m.complete(p, ASSOC_TYPE_ARG);
|
||||
}
|
||||
IDENT if p.nth(1) == T![=] => {
|
||||
name_ref(p);
|
||||
p.bump();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue