2018-04-21 09:18:38 -05:00
|
|
|
#[macro_export]
|
2022-10-30 06:55:58 -05:00
|
|
|
macro_rules! foo { () => {} }
|
2018-04-21 09:18:38 -05:00
|
|
|
|
|
|
|
#[macro_export]
|
2019-12-28 08:37:22 -06:00
|
|
|
macro_rules! foo { () => {} } //~ ERROR the name `foo` is defined multiple times
|
2018-08-22 18:19:38 -05:00
|
|
|
|
2022-10-30 06:55:58 -05: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-22 18:19:38 -05:00
|
|
|
fn main() {}
|