File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,8 +52,14 @@ PathIdentSegment ->
5252 IDENTIFIER | `super` | `self` | `Self` | `crate` | `$crate`
5353
5454GenericArgs ->
55- `<` `>`
56- | `<` ( GenericArg `,` )* GenericArg `,`? `>`
55+ `<` GenericArgList? `>`
56+ | `(` TypeList? `)` (`->` TypeNoBounds)?
57+
58+ GenericArgList ->
59+ ( GenericArg `,` )* GenericArg `,`?
60+
61+ TypeList ->
62+ ( Type `,` )* Type `,`?
5763
5864GenericArg ->
5965 Lifetime | Type | GenericArgsConst | GenericArgsBinding | GenericArgsBounds
@@ -154,11 +160,7 @@ r[paths.type.syntax]
154160``` grammar,paths
155161TypePath -> `::`? TypePathSegment (`::` TypePathSegment)*
156162
157- TypePathSegment -> PathIdentSegment (`::`? (GenericArgs | TypePathFn))?
158-
159- TypePathFn -> `(` TypePathFnInputs? `)` (`->` TypeNoBounds)?
160-
161- TypePathFnInputs -> Type (`,` Type)* `,`?
163+ TypePathSegment -> PathIdentSegment (`::`? GenericArgs)?
162164```
163165
164166r[ paths.type.intro]
You can’t perform that action at this time.
0 commit comments