doctests are not run when specifying a target #140996
Labels
A-doctests
Area: Documentation tests, run by rustdoc
C-bug
Category: This is a bug.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Steps to reproduce:
Add a doctest to
src/lib.rs
to:Run the tests with different targets:
As you can see only the normal test is run, but not the doctest.
Meta
This happens in both the current stable and nightly version.
rustc --version --verbose
:rustc +nightly --version --verbose
:The text was updated successfully, but these errors were encountered: