From a1c060c8d0fa3d7f7ad27f56be8298e5f9759c95 Mon Sep 17 00:00:00 2001 From: Aleksei Sidorov Date: Fri, 4 Sep 2020 15:28:08 +0300 Subject: Update codegen --- crates/assists/src/tests/generated.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'crates') diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index 04c8fd1f9..3963136d8 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs @@ -814,6 +814,19 @@ fn handle(action: Action) { ) } +#[test] +fn doctest_replace_impl_trait_with_generic() { + check_doc_test( + "replace_impl_trait_with_generic", + r#####" +fn foo(bar: <|>impl Bar) {} +"#####, + r#####" +fn foo(bar: B) {} +"#####, + ) +} + #[test] fn doctest_replace_let_with_if_let() { check_doc_test( -- cgit v1.2.3