Unexpected doc errors when using --nocapture and compile_fail #55813
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.
Problem
cargo test -- --nocapture
outputs error logs for documentation tests even when specifying thecompile_fail
argument.Steps
cargo new <project name>
lib.rs
file tosrc
cargo test -- --nocapture
The output will be:
Notes
Running
cargo test
presents a different output with no errors:Output of
cargo version
:The text was updated successfully, but these errors were encountered: