Skip to content

Commit 7757753

Browse files
committed
Verify that private items were actually documented
1 parent 4a11afc commit 7757753

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/doc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,10 +1557,10 @@ fn doc_private_items() {
15571557
version = "0.0.1"
15581558
"#,
15591559
)
1560-
.file("src/lib.rs", "fn private_item() {}")
1560+
.file("src/lib.rs", "mod private { fn private_item() {} }")
15611561
.build();
15621562
assert_that(foo.cargo("doc").arg("--document-private-items"), execs().with_status(0));
15631563

15641564
assert_that(&foo.root().join("target/doc"), existing_dir());
1565-
assert_that(&foo.root().join("target/doc/foo/index.html"), existing_file());
1565+
assert_that(&foo.root().join("target/doc/foo/private/index.html"), existing_file());
15661566
}

0 commit comments

Comments
 (0)