diff options
author | Aleksey Kladov <[email protected]> | 2019-10-27 13:56:53 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-10-27 14:02:43 +0000 |
commit | 85c64ec7bed4fba183f8ed22c96241c7baec3972 (patch) | |
tree | 8f2fe51a5a242e1f842f394c405978d24ea1d316 /docs | |
parent | fc2fc8528b699faf0993e607c842165ac65052f5 (diff) |
use new api for flip_trait_bound assist
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. |