17 lines
460 B
Rust
17 lines
460 B
Rust
// This test checks that it will output warnings for usage of `standalone` or `standalone_crate`.
|
|
|
|
//@ compile-flags:--test -Zunstable-options --edition 2024
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
//@ normalize-stdout-test: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
//@ normalize-stdout-test: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
|
|
|
#![deny(warnings)]
|
|
|
|
//! ```standalone
|
|
//! bla
|
|
//! ```
|
|
//!
|
|
//! ```standalone-crate
|
|
//! bla
|
|
//! ```
|