blob: 416d50cb07015644fdb05e78706bf4841e4978ac [file] [log] [blame]
//@ 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"
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
/// This doctest is used to ensure that if a crate attribute is present,
/// it will not be part of the merged doctests.
///
/// ```
/// #![doc(html_playground_url = "foo")]
///
/// pub struct Bar;
/// ```
///
/// This one will allow us to confirm that the doctest above will be a
/// standalone one (there will be two separate doctests passes).
///
/// ```
/// let x = 12;
/// ```
pub struct Foo;