aboutsummaryrefslogtreecommitdiff
path: root/docs/user/assists.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user/assists.md')
-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.