From acb89d2be12f6a1556d9a366231604371a62fdcd Mon Sep 17 00:00:00 2001 From: Ekaterina Babshukova Date: Wed, 4 Sep 2019 19:48:45 +0300 Subject: add assist to move type bounds to where clause --- docs/user/features.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs') diff --git a/docs/user/features.md b/docs/user/features.md index b6e6008c4..1034a5117 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -435,6 +435,16 @@ fn f() { } ``` +- Move type bounds to where clause + +```rust +// before: +fn foo T>() {} + +// after: +fn foo() where T: u32, F: FnOnce(T) -> T {} +``` + ### Magic Completions In addition to usual reference completion, rust-analyzer provides some ✨magic✨ -- cgit v1.2.3