2024-06-10 15:58:24 -05: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
|
|
|
|
|
|
|
|
//@ compile-flags:--test --edition 2021
|
|
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
2024-07-12 04:26:25 -05:00
|
|
|
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
2024-06-10 15:58:24 -05:00
|
|
|
//@ failure-status: 101
|
|
|
|
|
|
|
|
/// ```should_panic
|
|
|
|
/// println!("Hello, world!");
|
|
|
|
/// ```
|
|
|
|
pub struct Foo;
|