aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-10-27 13:56:53 +0000
committerAleksey Kladov <[email protected]>2019-10-27 14:02:43 +0000
commit85c64ec7bed4fba183f8ed22c96241c7baec3972 (patch)
tree8f2fe51a5a242e1f842f394c405978d24ea1d316 /docs
parentfc2fc8528b699faf0993e607c842165ac65052f5 (diff)
use new api for flip_trait_bound assist
Diffstat (limited to 'docs')
-rw-r--r--docs/user/assists.md12
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
253Flips two trait bounds.
254
255```rust
256// BEFORE
257fn foo<T: Clone +┃ Copy>() { }
258
259// AFTER
260fn foo<T: Copy + Clone>() { }
261```
262
251## `inline_local_variable` 263## `inline_local_variable`
252 264
253Inlines local variable. 265Inlines local variable.