Closed
Description
Right now a should_fail
doc test will succeed if either compilation fails or the test itself fails. The purpose of testing documentation is to fight bitrot, and if we're succeeding on bitrot, that's not too useful.
Rustdoc should always fail if compilation fails, and it should then fail or succeed depending on the result of the test itself and the presence of the should_fail
attribute.