Skip to content

Commit a1c060c

Browse files
Update codegen
1 parent 477fa75 commit a1c060c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

crates/assists/src/tests/generated.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,19 @@ fn handle(action: Action) {
814814
)
815815
}
816816

817+
#[test]
818+
fn doctest_replace_impl_trait_with_generic() {
819+
check_doc_test(
820+
"replace_impl_trait_with_generic",
821+
r#####"
822+
fn foo<G>(bar: <|>impl Bar) {}
823+
"#####,
824+
r#####"
825+
fn foo<B: Bar>(bar: B) {}
826+
"#####,
827+
)
828+
}
829+
817830
#[test]
818831
fn doctest_replace_let_with_if_let() {
819832
check_doc_test(

0 commit comments

Comments
 (0)