Skip to content

Commit

Permalink
Add test to confirm #10876 is fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Nov 23, 2022
1 parent ce9597c commit 183425f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testsuite/docscrape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ fn basic() {
)
.run();

p.cargo("doc -Zunstable-options -Z rustdoc-scrape-examples")
.masquerade_as_nightly_cargo(&["rustdoc-scrape-examples"])
.with_stderr("[FINISHED] [..]")
.run();

let doc_html = p.read_file("target/doc/foo/fn.foo.html");
assert!(doc_html.contains("Examples found in repository"));
assert!(doc_html.contains("More examples"));
Expand Down

0 comments on commit 183425f

Please sign in to comment.