1
Fork 0

style-guide: Give a second example for associated type formatting

Show an example that has bounds.
This commit is contained in:
Josh Triplett 2024-01-10 19:11:17 -08:00
parent 3742a4bd90
commit 2f20bb4a97

View file

@ -430,6 +430,7 @@ line if it fits:
```rust ```rust
type Item<'a> where Self: 'a; 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 If the associated type has a `=`, or if the `where` clause contains multiple