Update codegen

This commit is contained in:
Aleksei Sidorov 2020-09-04 15:28:08 +03:00
parent 477fa75cfb
commit a1c060c8d0

View File

@ -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<G>(bar: <|>impl Bar) {}
"#####,
r#####"
fn foo<B: Bar>(bar: B) {}
"#####,
)
}
#[test]
fn doctest_replace_let_with_if_let() {
check_doc_test(