]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/failed-doctest-output.rs
Rollup merge of #61135 - czipperz:rc-make_mut-weak-doc, r=Mark-Simulacrum
[rust.git] / src / test / rustdoc-ui / failed-doctest-output.rs
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
4
5 // compile-flags:--test
6 // normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
7 // failure-status: 101
8
9 // doctest fails at runtime
10 /// ```
11 /// println!("stdout 1");
12 /// eprintln!("stderr 1");
13 /// println!("stdout 2");
14 /// eprintln!("stderr 2");
15 /// panic!("oh no");
16 /// ```
17 pub struct SomeStruct;
18
19 // doctest fails at compile time
20 /// ```
21 /// no
22 /// ```
23 pub struct OtherStruct;