2019-05-04 19:37:12 +00:00
|
|
|
// FIXME: if/when the output of the test harness can be tested on its own, this test should be
|
|
|
|
// adapted to use that, and that normalize line can go away
|
|
|
|
|
2024-11-22 15:20:22 +00:00
|
|
|
//@ edition: 2024
|
|
|
|
//@ compile-flags:--test
|
2024-12-25 11:12:17 +00:00
|
|
|
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
|
|
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
2024-02-22 12:10:29 +00:00
|
|
|
//@ failure-status: 101
|
2019-05-04 19:37:12 +00:00
|
|
|
|
|
|
|
/// ```should_panic
|
|
|
|
/// println!("Hello, world!");
|
|
|
|
/// ```
|
|
|
|
pub struct Foo;
|