mirror of https://github.com/rust-lang/rfcs.git
Fixed the associated syntax error in the associated type Trait Headers
This commit is contained in:
parent
e9e8ac8d91
commit
f48e32e4cc
|
@ -263,7 +263,7 @@ Trait headers are written according to the following grammar:
|
|||
TRAIT_HEADER =
|
||||
'trait' IDENT [ '<' INPUT_PARAMS '>' ] [ ':' BOUNDS ] [ WHERE_CLAUSE ]
|
||||
|
||||
INPUT_PARAMS = INPUT_TY { ',' INPUT_TY }* [ ',' ]
|
||||
INPUT_PARAMS = INPUT_PARAM { ',' INPUT_PARAM }* [ ',' ]
|
||||
INPUT_PARAM = IDENT [ ':' BOUNDS ]
|
||||
|
||||
BOUNDS = BOUND { '+' BOUND }* [ '+' ]
|
||||
|
|
Loading…
Reference in New Issue