Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-assists/src/tests/generated.rs')
-rw-r--r--crates/ide-assists/src/tests/generated.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ide-assists/src/tests/generated.rs b/crates/ide-assists/src/tests/generated.rs
index 0096254ecb..8a35fd290e 100644
--- a/crates/ide-assists/src/tests/generated.rs
+++ b/crates/ide-assists/src/tests/generated.rs
@@ -2339,6 +2339,19 @@ fn handle(action: Action) {
}
#[test]
+fn doctest_replace_named_generic_with_impl() {
+ check_doc_test(
+ "replace_named_generic_with_impl",
+ r#####"
+fn new<P$0: AsRef<Path>>(location: P) -> Self {}
+"#####,
+ r#####"
+fn new(location: impl AsRef<Path>) -> Self {}
+"#####,
+ )
+}
+
+#[test]
fn doctest_replace_qualified_name_with_use() {
check_doc_test(
"replace_qualified_name_with_use",