@@ -41,7 +41,7 @@ The following points were also noted in [RFC 192], but we expand upon them here:
41
41
``` rust
42
42
trait Arbitrary : Sized + fmt :: Debug {
43
43
type Parameters : Default = ();
44
-
44
+
45
45
fn arbitrary_with (args : Self :: Parameters ) -> Self :: Strategy ;
46
46
47
47
fn arbitrary () -> Self :: Strategy {
@@ -68,7 +68,7 @@ The following points were also noted in [RFC 192], but we expand upon them here:
68
68
``` rust
69
69
trait Arbitrary : Sized + fmt :: Debug {
70
70
fn arbitrary () -> Self :: Strategy ;
71
-
71
+
72
72
type Strategy : Strategy <Value = Self >;
73
73
}
74
74
```
@@ -89,7 +89,7 @@ The following points were also noted in [RFC 192], but we expand upon them here:
89
89
``` rust
90
90
trait Arbitrary : Sized + fmt :: Debug {
91
91
type Parameters : Default = ();
92
-
92
+
93
93
fn arbitrary () -> Self :: Strategy {
94
94
Self :: arbitrary_with (Default :: default ())
95
95
}
@@ -258,7 +258,7 @@ impl<T> Foo for Vec<T> {
258
258
In the current implementation, (6) is rejected because the compiler will not
259
259
let you assume that ` x ` is of type ` usize ` . But in this proposal, you would be
260
260
allowed to assume this. To permit this is not a problem because ` Foo for Vec<T> `
261
- is not further specializable since ` baz ` in the implementation has not been
261
+ is not further specializable since ` Bar ` in the implementation has not been
262
262
marked as ` default ` .
263
263
264
264
### Trait objects
@@ -351,7 +351,7 @@ in other items specified in the implementation.
351
351
If an implementation does make the associated type available for
352
352
further specialization, then other definitions in the implementation
353
353
may not assume the given underlying specified type of the associated type
354
- and may only assume that it is ` Self::TheAsociatedType ` .
354
+ and may only assume that it is ` Self::TheAssociatedType ` .
355
355
356
356
This applies generally to any item inside a ` trait ` .
357
357
You may only assume the signature of an item, but not any provided definition,
@@ -971,10 +971,10 @@ associated type include:
971
971
/// "Callbacks" for a push-based parser
972
972
trait Sink {
973
973
fn handle_foo (& mut self , ... );
974
-
974
+
975
975
default {
976
976
type Output = Self ;
977
-
977
+
978
978
// OK to assume what `Output` really is because any overriding
979
979
// must override both `Outout` and `finish`.
980
980
fn finish (self ) -> Self :: Output { self }
@@ -1115,7 +1115,7 @@ impl ComputerScientist for StephanieWeirich {
1115
1115
// ERROR! You must override Details.
1116
1116
}
1117
1117
1118
- impl ComputerScientist for AndreiSabelfeld {
1118
+ impl ComputerScientist for AndreiSabelfeld {
1119
1119
type Details = LangSec ;
1120
1120
const THE_DETAILS : Self :: Details = LangSec { papers : 90 };
1121
1121
fn papers (details : Self :: Details ) -> u8 { details . papers }
0 commit comments