Skip to content

Commit 91988f4

Browse files
committed
Add generated docs
1 parent c2fd0c4 commit 91988f4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

crates/ide_assists/src/tests/generated.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,6 +1504,33 @@ fn main() {
15041504
)
15051505
}
15061506

1507+
#[test]
1508+
fn doctest_qualify_method_call() {
1509+
check_doc_test(
1510+
"qualify_method_call",
1511+
r#####"
1512+
struct Foo;
1513+
impl Foo {
1514+
fn foo(&self) {}
1515+
}
1516+
fn main() {
1517+
let foo = Foo;
1518+
foo.fo$0o();
1519+
}
1520+
"#####,
1521+
r#####"
1522+
struct Foo;
1523+
impl Foo {
1524+
fn foo(&self) {}
1525+
}
1526+
fn main() {
1527+
let foo = Foo;
1528+
Foo::foo(&foo);
1529+
}
1530+
"#####,
1531+
)
1532+
}
1533+
15071534
#[test]
15081535
fn doctest_qualify_path() {
15091536
check_doc_test(

0 commit comments

Comments
 (0)