aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-27 14:03:05 +0000
committerGitHub <[email protected]>2019-10-27 14:03:05 +0000
commit6a454c7133f8f4a8c167f9b0422c719062574e5b (patch)
tree8f2fe51a5a242e1f842f394c405978d24ea1d316 /docs
parentfc2fc8528b699faf0993e607c842165ac65052f5 (diff)
parent85c64ec7bed4fba183f8ed22c96241c7baec3972 (diff)
Merge #2091
2091: use new api for flip_trait_bound assist r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
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.