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
@@ -859,7 +859,7 @@ To address the challenge of an implicit name, we could allow people to explicitl
859
859
860
860
```rust
861
861
traitFactory {
862
-
#[associated_return_type(Widget)]
862
+
#[associated_return_type(Widgets)]
863
863
fnwidgets(&self) ->implIterator<Item=Widget>;
864
864
}
865
865
```
@@ -1035,7 +1035,7 @@ There are multiple ways we could write this where-clause, varying in their speci
1035
1035
*`where C::capture(..): Send` -- this indicates that `C::capture()` will return a `Send` value for any possible set of parameters
1036
1036
*`where C::capture(&mut C, i32): Send` -- this indicates that `C::capture()` will return a `Send` value when invoked specifically on a `&mut C` (for the `self` parameter) and an `i32`
1037
1037
*`where for<'a> C::capture(&'a mut C, i32): Send` -- same as the previous rule, but with the higher-ranked `'a` written explicitly
1038
-
*`where C::capture::<i32>(): Send` -- this indicates that `C::capture()` will return a `Send` value for any possible set of parameters, but with its `T` parameter set explicitly to `i32`
1038
+
*`where C::capture::<i32>(..): Send` -- this indicates that `C::capture()` will return a `Send` value for any possible set of parameters, but with its `T` parameter set explicitly to `i32`
1039
1039
*`where C::capture::<i32>(&mut C, i32): Send` -- this indicates that `C::capture()` will return a `Send` value when its `T` parameter is `i32`
1040
1040
*`where for<'a> C::capture::<i32>(&'a mut C, i32): Send` -- same as the previous rule, but with the higher-ranked `'a` written explicitly
1041
1041
@@ -1101,5 +1101,5 @@ We expect to make traits with async functions and RPITIT dyn safe in the future
1101
1101
1102
1102
## Naming the zero-sized types for a method
1103
1103
1104
-
Every function and method `f` in Rust has a corresponding zero-sized type that uniquely identifies `f`. The RTN notation `T::check(..)` refers to the return value of `check`; conceivably `T::check` (without the parens) could be used to refer the type of `check` itself. In this case, `T::check()` can be thought of as shorthand for `<T::check as Fn<_>>::Output`.
1104
+
Every function and method `f` in Rust has a corresponding zero-sized type that uniquely identifies `f`. The RTN notation `T::check(..)` refers to the return value of `check`; conceivably `T::check` (without the parens) could be used to refer the type of `check` itself. In this case, `T::check(..)` can be thought of as shorthand for `<T::check as Fn<_>>::Output`.
0 commit comments