diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-22 17:23:36 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-10 13:54:47 +0200 |
| commit | 21aabafbd16f2547dbbf865a437ccd2cc3cd0093 (patch) | |
| tree | 9d003593b9544c6ed468604eb6db86889f18a528 /tests/rustdoc-ui/extract-doctests-result.rs | |
| parent | 5864247b1028f2fe6a1deca3f45d62fb848f61d0 (diff) | |
| download | rust-21aabafbd16f2547dbbf865a437ccd2cc3cd0093.tar.gz rust-21aabafbd16f2547dbbf865a437ccd2cc3cd0093.zip | |
Add new extracted option doctest ui test for result returning doctest
Diffstat (limited to 'tests/rustdoc-ui/extract-doctests-result.rs')
| -rw-r--r-- | tests/rustdoc-ui/extract-doctests-result.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/extract-doctests-result.rs b/tests/rustdoc-ui/extract-doctests-result.rs new file mode 100644 index 00000000000..88affb6d333 --- /dev/null +++ b/tests/rustdoc-ui/extract-doctests-result.rs @@ -0,0 +1,11 @@ +// Test to ensure that it generates expected output for `--output-format=doctest` command-line +// flag. + +//@ compile-flags:-Z unstable-options --output-format=doctest +//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR" +//@ check-pass + +//! ``` +//! let x = 12; +//! Ok(()) +//! ``` |
