diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-05-19 23:27:55 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-19 23:27:55 +0100 |
commit | e94d7c124ffae5c7409b560e29a6cee006edf401 (patch) | |
tree | 72b770193eb81853cab75a97e19d46eba12c44d8 /crates/ra_assists/src/tests/generated.rs | |
parent | 1bc1f28bc58b2dbcf8f8f548c277e2c90e3075cd (diff) | |
parent | 80545e5d3a72ef05a77ff9584234f030c69bfe9f (diff) |
Merge #4518
4518: New assist: add turbo fish r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/tests/generated.rs')
-rw-r--r-- | crates/ra_assists/src/tests/generated.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/crates/ra_assists/src/tests/generated.rs b/crates/ra_assists/src/tests/generated.rs index 9487c9239..32fbcdef4 100644 --- a/crates/ra_assists/src/tests/generated.rs +++ b/crates/ra_assists/src/tests/generated.rs | |||
@@ -212,6 +212,25 @@ impl<T: Clone> Ctx<T> { | |||
212 | } | 212 | } |
213 | 213 | ||
214 | #[test] | 214 | #[test] |
215 | fn doctest_add_turbo_fish() { | ||
216 | check_doc_test( | ||
217 | "add_turbo_fish", | ||
218 | r#####" | ||
219 | fn make<T>() -> T { todo!() } | ||
220 | fn main() { | ||
221 | let x = make<|>(); | ||
222 | } | ||
223 | "#####, | ||
224 | r#####" | ||
225 | fn make<T>() -> T { todo!() } | ||
226 | fn main() { | ||
227 | let x = make::<${0:_}>(); | ||
228 | } | ||
229 | "#####, | ||
230 | ) | ||
231 | } | ||
232 | |||
233 | #[test] | ||
215 | fn doctest_apply_demorgan() { | 234 | fn doctest_apply_demorgan() { |
216 | check_doc_test( | 235 | check_doc_test( |
217 | "apply_demorgan", | 236 | "apply_demorgan", |