2018-04-21 17:18:38 +03:00
|
|
|
#[macro_export]
|
2022-10-30 15:55:58 +04:00
|
|
|
macro_rules! foo { () => {} }
|
2018-04-21 17:18:38 +03:00
|
|
|
|
|
|
|
#[macro_export]
|
2019-12-28 17:37:22 +03:00
|
|
|
macro_rules! foo { () => {} } //~ ERROR the name `foo` is defined multiple times
|
2018-08-23 02:19:38 +03:00
|
|
|
|
2022-10-30 15:55:58 +04:00
|
|
|
mod inner1 {
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! bar { () => {} }
|
|
|
|
}
|
|
|
|
|
|
|
|
mod inner2 {
|
|
|
|
#[macro_export]
|
|
|
|
macro_rules! bar { () => {} } //~ ERROR the name `bar` is defined multiple times
|
|
|
|
}
|
|
|
|
|
2018-08-23 02:19:38 +03:00
|
|
|
fn main() {}
|