1 // Issue #51162: A failed doctest was not printing its stdout/stderr
2 // FIXME: if/when the output of the test harness can be tested on its own, this test should be
3 // adapted to use that, and that normalize line can go away
5 // compile-flags:--test
6 // rustc-env:RUST_BACKTRACE=0
7 // normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
10 // doctest fails at runtime
12 /// println!("stdout 1");
13 /// eprintln!("stderr 1");
14 /// println!("stdout 2");
15 /// eprintln!("stderr 2");
18 pub struct SomeStruct;
20 // doctest fails at compile time
24 pub struct OtherStruct;