1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
//@ check-pass
//@ edition: 2024
//@ compile-flags: --test --test-args=--test-threads=1
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
/// ```
/// let x = 12;
/// ```
///
/// This one should not be a merged doctest (because of `$crate`). The output
/// will confirm it by displaying both merged and standalone doctest passes.
///
/// ```
/// macro_rules! bla {
/// () => {{
/// $crate::foo();
/// }}
/// }
///
/// fn foo() {}
///
/// fn main() {
/// bla!();
/// }
/// ```
pub struct Foo;
|