style-guide: Give a second example for associated type formatting
Show an example that has bounds.
This commit is contained in:
parent
3742a4bd90
commit
2f20bb4a97
1 changed files with 1 additions and 0 deletions
|
@ -430,6 +430,7 @@ line if it fits:
|
|||
|
||||
```rust
|
||||
type Item<'a> where Self: 'a;
|
||||
type Item<'a>: PartialEq + Send where Self: 'a;
|
||||
```
|
||||
|
||||
If the associated type has a `=`, or if the `where` clause contains multiple
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue