summary refs log tree commit diff
path: root/src/test/ui/issues/issue-38715.rs
blob: 850ffcdabe4cbc8148a94d19b29c472992529ed7 (plain)
1
2
3
4
5
6
7
8
#[macro_export]
macro_rules! foo { ($i:ident) => {} }

#[macro_export]
macro_rules! foo { () => {} } //~ ERROR a macro named `foo` has already been exported
                              //~| WARN this was previously accepted

fn main() {}