Skip to content

Commit e09d9ec

Browse files
committed
Tidy up the code
1 parent b0fcb5f commit e09d9ec

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/test/ui/rfc1598-generic-associated-types/collections.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
//FIXME(#44265): "lifetime parameters are not allowed on this type" errors will be addressed in a
1515
//follow-up PR
1616

17-
// A Collection trait and collection families.
18-
// Based on http://smallcultfollowing.com/babysteps/blog/2016/11/03/associated-type-constructors-part-2-family-traits/
17+
// A Collection trait and collection families. Based on
18+
// http://smallcultfollowing.com/babysteps/blog/2016/11/03/
19+
// associated-type-constructors-part-2-family-traits/
1920

2021
trait Collection<T> {
2122
fn empty() -> Self;
@@ -25,7 +26,8 @@ trait Collection<T> {
2526
type Iter<'iter>: Iterator<Item=&'iter T>;
2627
type Family: CollectionFamily;
2728
// Test associated type defaults with parameters
28-
type Sibling<U>: Collection<U> = <<Self as Collection<T>>::Family as CollectionFamily>::Member<U>;
29+
type Sibling<U>: Collection<U> = <<Self as Collection<T>>::Family as CollectionFamily>::
30+
Member<U>;
2931
//~^ ERROR type parameters are not allowed on this type [E0109]
3032
}
3133

@@ -82,4 +84,4 @@ fn use_floatify() {
8284
println!("{}", c.iterate().next());
8385
}
8486

85-
fn main() {}
87+
fn main() {}

0 commit comments

Comments
 (0)