]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/failed-doctest-output.rs
New upstream version 1.33.0+dfsg1
[rustc.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 // rustc-env:RUST_BACKTRACE=0
9
10 // doctest fails at runtime
11 /// ```
12 /// panic!("oh no");
13 /// ```
14 pub struct SomeStruct;
15
16 // doctest fails at compile time
17 /// ```
18 /// no
19 /// ```
20 pub struct OtherStruct;