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,8 @@ PathIdentSegment ->
5252 IDENTIFIER | `super` | `self` | `Self` | `crate` | `$crate`
5353
5454GenericArgs ->
55- `<` `>`
56- | `< ` ( GenericArg `,` )* GenericArg `,`? `>`
55+ `<` ( ( GenericArg `,` )* GenericArg `,`? )? `>`
56+ | `( ` ( ( Type `,` )* Type `,`? )? `)` (`->` TypeNoBounds)?
5757
5858GenericArg ->
5959 Lifetime | Type | GenericArgsConst | GenericArgsBinding | GenericArgsBounds
@@ -154,11 +154,7 @@ r[paths.type.syntax]
154154``` grammar,paths
155155TypePath -> `::`? TypePathSegment (`::` TypePathSegment)*
156156
157- TypePathSegment -> PathIdentSegment (`::`? (GenericArgs | TypePathFn))?
158-
159- TypePathFn -> `(` TypePathFnInputs? `)` (`->` TypeNoBounds)?
160-
161- TypePathFnInputs -> Type (`,` Type)* `,`?
157+ TypePathSegment -> PathIdentSegment (`::`? GenericArgs)?
162158```
163159
164160r[ paths.type.intro]
You can’t perform that action at this time.
0 commit comments