2024-09-27 19:40:11 +00:00
|
|
|
// This test checks that it will output warnings for usage of `standalone` or `standalone_crate`.
|
|
|
|
|
2024-11-22 15:20:22 +00:00
|
|
|
//@ edition: 2024
|
|
|
|
//@ compile-flags:--test
|
2024-12-25 11:12:17 +00: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 19:40:11 +00:00
|
|
|
|
|
|
|
#![deny(warnings)]
|
|
|
|
|
|
|
|
//! ```standalone
|
|
|
|
//! bla
|
|
|
|
//! ```
|
|
|
|
//!
|
2024-09-28 20:37:59 +00:00
|
|
|
//! ```standalone-crate
|
2024-09-27 19:40:11 +00:00
|
|
|
//! bla
|
|
|
|
//! ```
|