doc test that should not compile still fails compile_fail test #67771
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.
The below code (in cf/lib.rs) has three doc tests:
M
would be6 - 8
and there is an attempt to subtract with overflow.compile_fail
. However the test fails with the message “Test compiled successfully, but it's markedcompile_fail
.”The text was updated successfully, but these errors were encountered: