We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9f730e commit cbf6fe0Copy full SHA for cbf6fe0
tests/rustdoc-ui/doctest/merged-ignore-no_run.rs
@@ -0,0 +1,14 @@
1
+//@ compile-flags:--test --test-args=--test-threads=1 -Zunstable-options --edition 2024
2
+//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
3
+//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
4
+//@ check-pass
5
+
6
+/// ```ignore (test)
7
+/// let x = 12;
8
+/// ```
9
+pub fn ignored() {}
10
11
+/// ```no_run
12
+/// panic!("blob");
13
14
+pub fn no_run() {}
tests/rustdoc-ui/doctest/merged-ignore-no_run.stdout
@@ -0,0 +1,7 @@
+running 2 tests
+test $DIR/merged-ignore-no_run.rs - ignored (line 6) ... ignored
+test $DIR/merged-ignore-no_run.rs - no_run (line 11) - compile ... ok
+test result: ok. 1 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
0 commit comments