Skip to content

Commit a1c2077

Browse files
committed
rfc, associated-default-groups: simplify explanation of groups.
1 parent 26291df commit a1c2077

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

text/0000-assoc-default-groups.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,17 +1031,15 @@ For any items outside the group, you may assume their signatures,
10311031
but not the default definitions given. An example:
10321032

10331033
```rust
1034-
use std::marker::PhantomData;
1035-
10361034
trait Fruit {
10371035
type Details;
10381036
fn foo();
10391037
fn bar();
10401038
fn baz();
10411039
}
10421040

1043-
struct Citrus<S> { species: PhantomData<S> }
1044-
struct Orange<V> { variety: PhantomData<V> }
1041+
struct Citrus<S> { species: S }
1042+
struct Orange<V> { variety: V }
10451043
struct Blood;
10461044
struct Common;
10471045

0 commit comments

Comments
 (0)