From 2f20bb4a976e7dbd11c5329b48a2d402ff81fca9 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Wed, 10 Jan 2024 19:11:17 -0800 Subject: [PATCH] style-guide: Give a second example for associated type formatting Show an example that has bounds. --- src/doc/style-guide/src/items.md | 1 + 1 file changed, 1 insertion(+) 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