about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2024-01-10 19:11:17 -0800
committerJosh Triplett <josh@joshtriplett.org>2024-05-13 16:43:13 +0200
commit2f20bb4a976e7dbd11c5329b48a2d402ff81fca9 (patch)
tree9bf1069acb17f7bd517ff38f69ef5210e37331a7 /src
parent3742a4bd902f5d6efd2b401a6dab5e4087070d5d (diff)
downloadrust-2f20bb4a976e7dbd11c5329b48a2d402ff81fca9.tar.gz
rust-2f20bb4a976e7dbd11c5329b48a2d402ff81fca9.zip
style-guide: Give a second example for associated type formatting
Show an example that has bounds.
Diffstat (limited to 'src')
-rw-r--r--src/doc/style-guide/src/items.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/style-guide/src/items.md b/src/doc/style-guide/src/items.md
index 06bac129871..71818019189 100644
--- a/src/doc/style-guide/src/items.md
+++ b/src/doc/style-guide/src/items.md
@@ -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