File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 12
12
>   ;  ; ( _ LifetimeParam_ ` , ` )<sup >\* </sup > _ LifetimeParam_ <sup >?</sup >
13
13
>
14
14
> _ LifetimeParam_ :\
15
- >   ;  ; [ _ OuterAttribute_ ] <sup >?</sup > [ LIFETIME_OR_LABEL] ` : ` [ _ LifetimeBounds_ ] <sup >?</sup >
15
+ >   ;  ; [ _ OuterAttribute_ ] <sup >?</sup > [ LIFETIME_OR_LABEL] & nbsp ; ( ` : ` [ _ LifetimeBounds_ ] ) <sup >?</sup >
16
16
>
17
17
> _ TypeParams_ :\
18
- >   ;  ; ( _ TypeParam_ ` , ` )<sup >\* </sup > _ TypeParam_ <sup >?</sup >
18
+ >   ;  ; ( _ TypeParam_ ` , ` )<sup >\* </sup > _ TypeParam_ <sup >?</sup >
19
19
>
20
20
> _ TypeParam_ :\
21
21
>   ;  ; [ _ OuterAttribute_ ] <sup >?</sup > [ IDENTIFIER] ( ` : ` [ _ TypeParamBounds_ ] )<sup >?</sup > ( ` = ` [ _ Type_ ] )<sup >?</sup >
Original file line number Diff line number Diff line change 4
4
> _ Trait_ :\
5
5
>   ;  ; ` unsafe ` <sup >?</sup > ` trait ` [ IDENTIFIER]   ;
6
6
> [ _ Generics_ ] <sup >?</sup >
7
+ > ( ` : ` [ _ TypeParamBounds_ ] <sup >?</sup > )<sup >?</sup >
7
8
> [ _ WhereClause_ ] <sup >?</sup > ` { ` \
8
9
>   ;  ;  ;  ; _ TraitItem_ <sup >\* </sup >\
9
10
>   ;  ; ` } `
40
41
>   ;  ; ( [ _ Pattern_ ] ` : ` )<sup >?</sup > [ _ Type_ ]
41
42
>
42
43
> _ TraitConst_ :\
43
- >   ;  ; ` const ` [ IDENTIFIER] ( ( ` : ` [ _ Type_ ] ) ( ` = ` [ _ Expression_ ] )< sup >?</ sup > )<sup >?</sup > ` ; `
44
+ >   ;  ; ` const ` [ IDENTIFIER] ` : ` [ _ Type_ ] & nbsp ; ( ` = ` [ _ Expression_ ] )<sup >?</sup > ` ; `
44
45
>
45
46
> _ TraitType_ :\
46
- >   ;  ; ` type ` [ IDENTIFIER] ( ` : ` [ _ TypeParamBounds_ ] )<sup >?</sup > ` ; `
47
+ >   ;  ; ` type ` [ IDENTIFIER] ( ` : ` [ _ TypeParamBounds_ ] < sup >?</ sup > )<sup >?</sup > ` ; `
47
48
48
49
A _ trait_ describes an abstract interface that types can implement. This
49
50
interface consists of [ associated items] , which come in three varieties:
Original file line number Diff line number Diff line change 2
2
3
3
> ** <sup >Syntax:</sup >** \
4
4
> _ UseDeclaration_ :\
5
- >   ;  ; [ _ Visibility _ ] < sup >?</ sup > ` use ` _ UseTree_ ` ; `
5
+ >   ;  ; ` use ` _ UseTree_ ` ; `
6
6
>
7
7
> _ UseTree_ :\
8
8
>   ;  ;   ;  ; ([ _ SimplePath_ ] <sup >?</sup > ` :: ` )<sup >?</sup > ` * ` \
@@ -152,5 +152,4 @@ fn main() {}
152
152
153
153
[IDENTIFIER]: identifiers.html
154
154
[_SimplePath_]: paths.html#simple-paths
155
- [_Visibility_]: visibility-and-privacy.html
156
155
[path qualifiers]: paths.html#path-qualifiers
You can’t perform that action at this time.
0 commit comments