Skip to content

Commit e76da81

Browse files
author
Lukas Markeffsky
committed
trait bounds grammar: make ? and for<> mutually exclusive
1 parent c64e52a commit e76da81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/trait-bounds.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
> &nbsp;&nbsp; &nbsp;&nbsp; _Lifetime_ | _TraitBound_ | _UseBound_
99
>
1010
> _TraitBound_ :\
11-
> &nbsp;&nbsp; &nbsp;&nbsp; `?`<sup>?</sup>
12-
> [_ForLifetimes_](#higher-ranked-trait-bounds)<sup>?</sup> [_TypePath_]\
13-
> &nbsp;&nbsp; | `(` `?`<sup>?</sup>
14-
> [_ForLifetimes_](#higher-ranked-trait-bounds)<sup>?</sup> [_TypePath_] `)`
11+
> &nbsp;&nbsp; &nbsp;&nbsp; ( `?` |
12+
> [_ForLifetimes_](#higher-ranked-trait-bounds) )<sup>?</sup> [_TypePath_]\
13+
> &nbsp;&nbsp; | `(` ( `?` |
14+
> [_ForLifetimes_](#higher-ranked-trait-bounds) )<sup>?</sup> [_TypePath_] `)`
1515
>
1616
> _LifetimeBounds_ :\
1717
> &nbsp;&nbsp; ( _Lifetime_ `+` )<sup>\*</sup> _Lifetime_<sup>?</sup>

0 commit comments

Comments
 (0)