mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
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
@ -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…
Reference in New Issue
Block a user