]> git.lizzy.rs Git - rust.git/commitdiff
Update codegen
authorAleksei Sidorov <gorthauer87@yandex.ru>
Fri, 4 Sep 2020 12:28:08 +0000 (15:28 +0300)
committerAleksei Sidorov <gorthauer87@yandex.ru>
Fri, 4 Sep 2020 12:28:08 +0000 (15:28 +0300)
crates/assists/src/tests/generated.rs

index 04c8fd1f94e38c4e6ec4d3f5a42794f172c9da62..3963136d82406a0cef889252e2252d2560d338a9 100644 (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(