diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user/assists.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/user/assists.md b/docs/user/assists.md index e4d08a7dc..b1fe44d84 100644 --- a/docs/user/assists.md +++ b/docs/user/assists.md | |||
@@ -248,6 +248,18 @@ fn main() { | |||
248 | } | 248 | } |
249 | ``` | 249 | ``` |
250 | 250 | ||
251 | ## `flip_trait_bound` | ||
252 | |||
253 | Flips two trait bounds. | ||
254 | |||
255 | ```rust | ||
256 | // BEFORE | ||
257 | fn foo<T: Clone +┃ Copy>() { } | ||
258 | |||
259 | // AFTER | ||
260 | fn foo<T: Copy + Clone>() { } | ||
261 | ``` | ||
262 | |||
251 | ## `inline_local_variable` | 263 | ## `inline_local_variable` |
252 | 264 | ||
253 | Inlines local variable. | 265 | Inlines local variable. |