mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00

as request T-lang is requesting some major changes in the lint inner workings in #126768#issuecomment-2192634762
13 lines
429 B
Rust
13 lines
429 B
Rust
//@ check-pass
|
|
//@ compile-flags:--test --test-args --test-threads=1 --nocapture -Zunstable-options
|
|
//@ normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
//@ normalize-stderr-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
|
|
//@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
|
|
|
|
#![doc(test(attr(warn(non_local_definitions))))]
|
|
|
|
//! ```
|
|
//! #[macro_export]
|
|
//! macro_rules! a_macro { () => {} }
|
|
//! ```
|