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 // normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
9 // doctest fails at runtime
11 /// println!("stdout 1");
12 /// eprintln!("stderr 1");
13 /// println!("stdout 2");
14 /// eprintln!("stderr 2");
17 pub struct SomeStruct;
19 // doctest fails at compile time
23 pub struct OtherStruct;