2024-09-27 21:40:11 +02:00
|
|
|
// This test checks that it will output warnings for usage of `standalone` or `standalone_crate`.
|
|
|
|
|
2024-11-22 07:20:22 -08:00
|
|
|
//@ edition: 2024
|
|
|
|
//@ compile-flags:--test
|
2024-12-25 22:12:17 +11:00
|
|
|
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
|
|
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
//@ normalize-stdout: ".rs:\d+:\d+" -> ".rs:$$LINE:$$COL"
|
2024-09-27 21:40:11 +02:00
|
|
|
|
|
|
|
#![deny(warnings)]
|
|
|
|
|
|
|
|
//! ```standalone
|
|
|
|
//! bla
|
|
|
|
//! ```
|
|
|
|
//!
|
2024-09-28 22:37:59 +02:00
|
|
|
//! ```standalone-crate
|
2024-09-27 21:40:11 +02:00
|
|
|
//! bla
|
|
|
|
//! ```
|