diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-07-09 14:34:55 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2024-08-13 20:14:57 +0200 |
| commit | cbf6fe05e78c59e98d09a21bc90a7559b0cd8d5a (patch) | |
| tree | 959b9b7d51042bbe4eaba71e19625fd4d9d25089 /tests/rustdoc-ui/doctest/merged-ignore-no_run.rs | |
| parent | c9f730e2236a2ee37f59b03e6a017b198ed40b38 (diff) | |
| download | rust-cbf6fe05e78c59e98d09a21bc90a7559b0cd8d5a.tar.gz rust-cbf6fe05e78c59e98d09a21bc90a7559b0cd8d5a.zip | |
Add more merged doctests tests
Diffstat (limited to 'tests/rustdoc-ui/doctest/merged-ignore-no_run.rs')
| -rw-r--r-- | tests/rustdoc-ui/doctest/merged-ignore-no_run.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doctest/merged-ignore-no_run.rs b/tests/rustdoc-ui/doctest/merged-ignore-no_run.rs new file mode 100644 index 00000000000..1a2f9492057 --- /dev/null +++ b/tests/rustdoc-ui/doctest/merged-ignore-no_run.rs @@ -0,0 +1,14 @@ +//@ compile-flags:--test --test-args=--test-threads=1 -Zunstable-options --edition 2024 +//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR" +//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" +//@ check-pass + +/// ```ignore (test) +/// let x = 12; +/// ``` +pub fn ignored() {} + +/// ```no_run +/// panic!("blob"); +/// ``` +pub fn no_run() {} |
