mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
19 lines
281 B
Rust
19 lines
281 B
Rust
// Imports suppress the `out_of_scope_macro_calls` lint.
|
|
|
|
//@ check-pass
|
|
//@ edition:2018
|
|
|
|
#![doc = in_root!()]
|
|
|
|
macro_rules! in_root { () => { "" } }
|
|
use in_root;
|
|
|
|
mod macros_stay {
|
|
#![doc = in_mod!()]
|
|
|
|
macro_rules! in_mod { () => { "" } }
|
|
use in_mod;
|
|
}
|
|
|
|
fn main() {}
|