You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1157,10 +1157,7 @@ of the :t:`return type`'s :t:`function` and its parent :t:`trait` or
1157
1157
An :t:`impl trait type` shall not contain :t:`[opt-out trait bound]s`.
1158
1158
1159
1159
:dp:`fls_69hqMjvNno9u`
1160
-
An :t:`use capture` is a :t:`generic parameter` referenced via keyword ``use`` within an :t:`anonymous return type`.
1161
-
1162
-
:dp:`fls_OnyR0Wsfk7KI`
1163
-
:t:`[use capture]s` shall only be used within :t:`[anonymous return type]s`.
1160
+
An :t:`use capture` is a :t:`generic parameter` referenced within an :t:`anonymous return type`.
1164
1161
1165
1162
:dp:`fls_KgH6c5cC4S0G`
1166
1163
An :t:`anonymous return type` that does not specify a list of :t:`[use capture]s` implicitly :t:`[use capture]s` all :t:`[type parameter]s` and :t:`[constant parameter]s` that are in :t:`scope`.
@@ -2896,6 +2893,7 @@ Trait and Lifetime Bounds
2896
2893
LifetimeIndication
2897
2894
|ParenthesizedTraitBound
2898
2895
|TraitBound
2896
+
|UseCaptures
2899
2897
2900
2898
LifetimeIndication ::=
2901
2899
Lifetime
@@ -2977,6 +2975,9 @@ If an :t:`outlives bound` applies to the :t:`type` of a :t:`function parameter`
2977
2975
or to a :t:`return type`, then this bound also applies to the related
2978
2976
:t:`function` as an :t:`implied bound`.
2979
2977
2978
+
:dp:`fls_OnyR0Wsfk7KI`
2979
+
:t:`[Use capture]` :t:`[bound]s` shall only be used within :t:`[anonymous return type]s`.
0 commit comments