-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot write doc-tests in markdown files #76709
Comments
I tested with:
And ran it without issues: $ rustdoc --test foo.md
running 1 test
test foo.md - hello (line 5) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out |
That's something different though; this is about doc tests inside of code blocks in markdown files. @jyn514 it's not clear from your post; the error here is about not having an item to document. If you create one, does it properly do this, or not? |
Just like @steveklabnik pointed out, a bit more context would be welcome. :) |
Hmm, I can no longer reproduce this. @AndyGauge do you happen to have a copy of the code that caused this failure? The error message in e9e5b2a#r475234292 doesn't match up with the code you have. |
We didn't hear from @AndyGauge since then so I'll close this until we have more information. |
Currently, it gives this error:
Rustdoc should always run doctests in markdown, since there's no code to document.
Originally posted by @jyn514 in #75778 (comment)
The text was updated successfully, but these errors were encountered: