Skip to content

extract source code of doctests - #205

Merged
senekor merged 1 commit into
mainfrom
senekor/extract-doctest-source
Jul 29, 2026
Merged

extract source code of doctests#205
senekor merged 1 commit into
mainfrom
senekor/extract-doctest-source

Conversation

@senekor

@senekor senekor commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

We use doctests in a few exercises to ensure some code doesn't compile with the compile_fail attribute. This is not possible with normal unit or integration tests. Examples include the exercise macros, where the tests ensure the user's macro rejects invalid input, and doubly-linked-list, where the tests ensure the user doesn't unsoundly implement the Send and Sync traits.

@senekor
senekor requested a review from a team as a code owner July 29, 2026 11:43
@senekor
senekor merged commit a13cba4 into main Jul 29, 2026
3 checks passed
@senekor
senekor deleted the senekor/extract-doctest-source branch July 29, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants