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
@@ -1146,6 +1156,18 @@ of the :t:`return type`'s :t:`function` and its parent :t:`trait` or
1146
1156
:dp:`fls_ECjhEI7eCwAj`
1147
1157
An :t:`impl trait type` shall not contain :t:`[opt-out trait bound]s`.
1148
1158
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`.
1164
+
1165
+
:dp:`fls_KgH6c5cC4S0G`
1166
+
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`.
1167
+
1168
+
:dp:`fls_iT9WCNfUZQnC`
1169
+
An :t:`anonymous return type` behaves as if it contained all its :t:`[use capture]s`.
1170
+
1149
1171
.. rubric:: Examples
1150
1172
1151
1173
.. code-block:: rust
@@ -2309,7 +2331,7 @@ any resulting :t:`type` information via :t:`type unification`.
2309
2331
:dp:`fls_v5dWGuBKvQSJ`
2310
2332
When an :t:`associated type` ``<Type as Trait>::Assoc`` is referenced within a
2311
2333
:t:`type inference root` (either explicitly within the source code, or via the
2312
-
inferece rules below), an :t:`obligation` requiring that ``Type`` implements
2334
+
inference rules below), an :t:`obligation` requiring that ``Type`` implements
0 commit comments