2 // There's a parallel generic version of this test for non-windows platforms.
4 // Issue #51162: A failed doctest was not printing its stdout/stderr
5 // FIXME: if/when the output of the test harness can be tested on its own, this test should be
6 // adapted to use that, and that normalize line can go away
8 // compile-flags:--test --test-args --test-threads=1
9 // rustc-env:RUST_BACKTRACE=0
10 // normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
11 // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
12 // failure-status: 101
14 // doctest fails at runtime
16 /// println!("stdout 1");
17 /// eprintln!("stderr 1");
18 /// println!("stdout 2");
19 /// eprintln!("stderr 2");
22 pub struct SomeStruct;
24 // doctest fails at compile time
28 pub struct OtherStruct;