2024-06-18 08:45:50 -05:00
|
|
|
#![doc = in_root!()] //~ WARN cannot find macro `in_root` in this scope
|
|
|
|
//~| WARN this was previously accepted by the compiler
|
2024-05-29 12:56:36 -05:00
|
|
|
#![doc = in_mod!()] //~ ERROR cannot find macro `in_mod` in this scope
|
2024-06-18 08:45:50 -05:00
|
|
|
#![doc = in_mod_escape!()] //~ WARN cannot find macro `in_mod_escape` in this scope
|
|
|
|
//~| WARN this was previously accepted by the compiler
|
2024-05-29 12:56:36 -05:00
|
|
|
#![doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
|
|
|
|
|
|
|
#[doc = in_root!()] //~ ERROR cannot find macro `in_root` in this scope
|
|
|
|
#[doc = in_mod!()] //~ ERROR cannot find macro `in_mod` in this scope
|
|
|
|
#[doc = in_mod_escape!()] //~ ERROR cannot find macro `in_mod_escape` in this scope
|
|
|
|
#[doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
|
|
|
fn before() {
|
|
|
|
#![doc = in_root!()] //~ ERROR cannot find macro `in_root` in this scope
|
|
|
|
#![doc = in_mod!()] //~ ERROR cannot find macro `in_mod` in this scope
|
|
|
|
#![doc = in_mod_escape!()] //~ ERROR cannot find macro `in_mod_escape` in this scope
|
|
|
|
#![doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
|
|
|
}
|
|
|
|
|
|
|
|
macro_rules! in_root { () => { "" } }
|
|
|
|
|
2024-06-18 08:45:50 -05:00
|
|
|
#[doc = in_mod!()] //~ WARN cannot find macro `in_mod` in this scope
|
|
|
|
//~| WARN this was previously accepted by the compiler
|
2024-05-29 12:56:36 -05:00
|
|
|
mod macros_stay {
|
2024-06-18 08:45:50 -05:00
|
|
|
#![doc = in_mod!()] //~ WARN cannot find macro `in_mod` in this scope
|
|
|
|
//~| WARN this was previously accepted by the compiler
|
2024-05-29 12:56:36 -05:00
|
|
|
|
|
|
|
macro_rules! in_mod { () => { "" } }
|
|
|
|
|
|
|
|
#[doc = in_mod!()] // OK
|
|
|
|
fn f() {
|
|
|
|
#![doc = in_mod!()] // OK
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[macro_use]
|
2024-06-18 08:45:50 -05:00
|
|
|
#[doc = in_mod_escape!()] //~ WARN cannot find macro `in_mod_escape` in this scope
|
|
|
|
//~| WARN this was previously accepted by the compiler
|
2024-05-29 12:56:36 -05:00
|
|
|
mod macros_escape {
|
2024-06-18 08:45:50 -05:00
|
|
|
#![doc = in_mod_escape!()] //~ WARN cannot find macro `in_mod_escape` in this scope
|
|
|
|
//~| WARN this was previously accepted by the compiler
|
2024-05-29 12:56:36 -05:00
|
|
|
|
|
|
|
macro_rules! in_mod_escape { () => { "" } }
|
|
|
|
|
|
|
|
#[doc = in_mod_escape!()] // OK
|
|
|
|
fn f() {
|
|
|
|
#![doc = in_mod_escape!()] // OK
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-18 08:45:50 -05:00
|
|
|
#[doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
2024-05-29 12:56:36 -05:00
|
|
|
fn block() {
|
2024-06-18 08:45:50 -05:00
|
|
|
#![doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
2024-05-29 12:56:36 -05:00
|
|
|
|
|
|
|
macro_rules! in_block { () => { "" } }
|
|
|
|
|
|
|
|
#[doc = in_block!()] // OK
|
|
|
|
fn f() {
|
|
|
|
#![doc = in_block!()] // OK
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#[doc = in_root!()] // OK
|
|
|
|
#[doc = in_mod!()] //~ ERROR cannot find macro `in_mod` in this scope
|
|
|
|
#[doc = in_mod_escape!()] // OK
|
|
|
|
#[doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
|
|
|
fn after() {
|
|
|
|
#![doc = in_root!()] // OK
|
|
|
|
#![doc = in_mod!()] //~ ERROR cannot find macro `in_mod` in this scope
|
|
|
|
#![doc = in_mod_escape!()] // OK
|
|
|
|
#![doc = in_block!()] //~ ERROR cannot find macro `in_block` in this scope
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|