rust/tests/ui/macros/issue-38715.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
349 B
Rust
Raw Normal View History

2018-04-21 14:18:38 +00:00
#[macro_export]
macro_rules! foo { () => {} }
2018-04-21 14:18:38 +00:00
#[macro_export]
macro_rules! foo { () => {} } //~ ERROR the name `foo` is defined multiple times
mod inner1 {
#[macro_export]
macro_rules! bar { () => {} }
}
mod inner2 {
#[macro_export]
macro_rules! bar { () => {} } //~ ERROR the name `bar` is defined multiple times
}
fn main() {}