Skip to content

Commit 2f20bb4

Browse files
committed
style-guide: Give a second example for associated type formatting
Show an example that has bounds.
1 parent 3742a4b commit 2f20bb4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/style-guide/src/items.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,7 @@ line if it fits:
430430

431431
```rust
432432
type Item<'a> where Self: 'a;
433+
type Item<'a>: PartialEq + Send where Self: 'a;
433434
```
434435

435436
If the associated type has a `=`, or if the `where` clause contains multiple

0 commit comments

Comments
 (0)