about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/standalone-warning-2024.rs
blob: 35d1c738bb16f748b187e3c40a49ae0ae75149b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This test checks that it will output warnings for usage of `standalone` or `standalone_crate`.

//@ edition: 2024
//@ compile-flags:--test
//@ 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
//! ```