From 91988f46b7618c89652632f7052265e5d2b5cae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Palenica?= Date: Wed, 20 Oct 2021 23:54:22 -0700 Subject: [PATCH] Add generated docs --- crates/ide_assists/src/tests/generated.rs | 27 +++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 6c5eaf310c..bb058bb8f2 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs @@ -1504,6 +1504,33 @@ fn main() { ) } +#[test] +fn doctest_qualify_method_call() { + check_doc_test( + "qualify_method_call", + r#####" +struct Foo; +impl Foo { + fn foo(&self) {} +} +fn main() { + let foo = Foo; + foo.fo$0o(); +} +"#####, + r#####" +struct Foo; +impl Foo { + fn foo(&self) {} +} +fn main() { + let foo = Foo; + Foo::foo(&foo); +} +"#####, + ) +} + #[test] fn doctest_qualify_path() { check_doc_test(