Skip to content

Commit 183425f

Browse files
committed
Add test to confirm #10876 is fixed.
1 parent ce9597c commit 183425f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/testsuite/docscrape.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ fn basic() {
3030
)
3131
.run();
3232

33+
p.cargo("doc -Zunstable-options -Z rustdoc-scrape-examples")
34+
.masquerade_as_nightly_cargo(&["rustdoc-scrape-examples"])
35+
.with_stderr("[FINISHED] [..]")
36+
.run();
37+
3338
let doc_html = p.read_file("target/doc/foo/fn.foo.html");
3439
assert!(doc_html.contains("Examples found in repository"));
3540
assert!(doc_html.contains("More examples"));

0 commit comments

Comments
 (0)